Hi. I have been trying to get this to work for hours. I can't see what I am doing wrong. I am working on php4 on godaddy shared hosting. I am trying to get the php function getimagesize working in a test php program so I can apply the logic to another program.
I displayed the file variable with an img tag to confirm the path to the image file was correct.
Here's my test page:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
$filename = "/webadmin/uploads_for_emails/smileyface.jpg";
echo "<img src='" . $filename . "'>";
echo "filename " . $filename;
list($width, $height, $type, $attr) = getimagesize($filename);
echo "Image width " .$width;
echo "Image height " .$height;
echo "Image type " .$type;
echo "Attribute " .$attr;
I've attached a screenshot of the resulting page and error message.
Thanks for your help.