Safe mode? If safe mode is on and the image is owned by apache, the script that is owned by your acount cannot read the image.

Nathan Taylor wrote:
Hey Guys,

I am developing code that uses GD to create and store an image but it is giving me trouble with GetImageSize, maybe you guys can offer some ideas. Here's my code:

echo "<div id=\"zimg\" class=\"zoom\"><img src=\"create_image.php?image=".$imgpath.$fileid.".jpg&mergesrc=images/hide.jpg&cache=1\" onMouseOut=\"hideObject(zimg)\" onMouseDown=\"hideObject(zimg)\" border=\"0\"></div>\n";

$img_data = GetImageSize($imgpath.$imgname_full);

The first line creates and stores the image while the second line calls file information on it. Procedurally, the image exists at the point which GetImageSize is called, however, GetImageSize returns a false result on the pointer when it looks for the file. All the paths are fine but there is something going cock-eyed during the execution.

Can anyone offer ideas? I have already tried both declaring an absolute path and checking the variables arlready.

Thanks,
Nathan Taylor

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to