The website I am working on uses getimagesize to rescale images.
We're setting up a new site using the same images, but am having trouble getting the image size. I think its because of the images being in a different document root to the script, though it displays the image fine.
We're getting the image size like so:
list($width, $height, $type, $whstr) = getimagesize('../../~gan1/images/summarypics/2211.jpg');
This function returns false, and the error message:
Warning: getimagesize(../../~gan1/images/summarypics/2211.jpg): failed to open stream: No such file or directory
Though, like I said, the image then displays, completely oblivious to the trouble its causing me.
Anu Ideas