Hi,
I'm trying to run this statement on a php3 server. I understand that the $variable[0]
has a different meaning with php4. This was written for php4. I didn't write this code but have been given the task of porting it to the php3 supported server.
Basically (as I understand) this checks to see if an image has been passed from a form field. The problem is that when $thumb has no value it still process it like it does.
Would someone please offer a suggestion?
Thanks,
Ryan
if ($thumb[0] != "none"):
$loc = $thumb[0];
$thumb1 = strtr($thumb_name[0], " ", "");
$thumb1 = $stamp . "tmb" . $thumb1;
$dest = "clientimages/" . $thumb1;
copy($loc,$dest);
$fields .= "thumb1 = '$thumb1', ";
endif;