file_exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux