file_exists
| From: | Ronald Wiplinger | Date: | Wed, 14 Nov 2007 07:46:29 +0000 |
| Subject: | file_exists | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-264475@lists.php.net to get a copy of this message | ||
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 " " // 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