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:
Code: Select all
list($width, $height, $type, $whstr) = getimagesize('../../~gan1/images/summarypics/2211.jpg');Code: Select all
Warning: getimagesize(../../~gan1/images/summarypics/2211.jpg): failed to open stream: No such file or directory