# Unsupported operand types (php)

**URL:** https://forum.kirupa.com/t/unsupported-operand-types-php/204688
**Category:** programming
**Created:** [October 22, 2006, 4:22pm UTC](https://forum.kirupa.com/t/unsupported-operand-types-php/204688 "2006-10-22T16:22:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pucca](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pucca](https://forum.kirupa.com/u/pucca)
#### Post date: [October 22, 2006, 4:22pm UTC](https://forum.kirupa.com/t/unsupported-operand-types-php/204688/1 "2006-10-22T16:22:23Z")

</div>

I’ve got a HUGE prob!! Got a script for resizing images php. I got the following error message :  
**Fatal error** : Unsupported operand types in **/v.www/htdocs/destinationafrica.org/includes/misc\_functions.php** on line **109**

\*\*  
Heres m code:

\*\*

```php
     $size = getimagesize('old/spimages/' . $rowspic["imee"]);
                                $height = $size;
                                $width = $size;
                                if ($width > 450)
                                {
                                $width = 450;
                                $percent = ($size / $width);
                                $height = ($size / $percent);
                                }
            echo '<td rowspan="2"><img src="old/spimages/' . $rowspic['imee'] . '" height="' . $height . '" width="' . $width . '" /></td>';

```

Line nr. 109 is the

```php
$percent = ($size / $width);

```

one.

PLEASE help! Have NO idea what this means, and can’t fins any answers on the web… Thanks in advance!
