?
Solved

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

Posted on 2007-10-17
1
Medium Priority
?
690 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:XebraTech
1 Comment
 
LVL 48

Accepted Solution

by:
hernst42 earned 1000 total points
ID: 20091815
Maybe open_basedir restriction is in effect which prevents you reading those files via php, but not via apache
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question