I am having troubles with the function  file_exists()

I tried the full path like:

if (file_exists('/srv/www/....../images/pic412.jpg') {
    echo "<IMG SRC='images/pic412.jpg'>";
} else {
    echo "&nbsp;"                   //    picture is missing!
}

No matter if I use the full path or just images/pic412.jpg, it always
shows the picture is missing!
The file exist there!

How can I do it?
I want that in case the picture is really missing, a blank will be shown.

bye

Ronald

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to