sonnysavage
Programmer
The field name of my form is "image". When the form is submitted, part of my logic looks like this:
The strange thing is, on my Windows 98 machine (where I develop), the logic works just fine, if an image has not been specified, that code does not execute. On the remote server (Linux), the code inside that if block tries to execute, and throws an error because it tries to
on an "empty" string.
Is anyone aware of a more reliable way to check this $image variable?
Thanks!
Code:
if ($image) {
$imageinfo = getimagesize($image);
}
The strange thing is, on my Windows 98 machine (where I develop), the logic works just fine, if an image has not been specified, that code does not execute. On the remote server (Linux), the code inside that if block tries to execute, and throws an error because it tries to
Code:
getimagesize()
Is anyone aware of a more reliable way to check this $image variable?
Thanks!