Link to home
Start Free TrialLog in
Avatar of XebraTech
XebraTechFlag for United States of America

asked on

getimagesize not following symlink - images display however (FC6 + Plesk)

Running Fedora Core 6 with Plesk installed. (Virtual Host)

Have a symbolic link pointing to an image directory in another subdomain.  Have put a 'vhosts.conf' file allowing to FollowSymLinks, which appears to be working just fine as the images are displayed appropriately.

I need to do a getImageSize in order to prepare for popping a new window with a larger image for 'view larger image' type functionality.  So, images load/display fine, but when I call

$imgPath = "./images/products/".filename.jpg;
list($width, $height, $type, $attr) = getimagesize($imgPath);

I don't get any values in my variables.  Yet images does exist and does display.

I don't understand why.  Have put a test in and am getting is_readable as false.

Any ideas on this one?

Thanks...Bob

Bob McCormick
XebraTech
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial