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

Posted on 2007-10-17
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?


Bob McCormick
Question by:XebraTech
    1 Comment
    LVL 48

    Accepted Solution

    Maybe open_basedir restriction is in effect which prevents you reading those files via php, but not via apache

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now