note 25971 added to function.file-exists
| From: | aslusarczyk at web dot de | Date: | Sun, 13 Oct 2002 16:27:33 +0000 |
| Subject: | note 25971 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38019@lists.php.net to get a copy of this message | ||
Hi,
I'm kinda new to PHP and I have the following problem: In a function, I want to verify whether
a file exists before I go on, and if it doesn´t, return false and stop right there. So I tried
if(!file_exists($my_file)) {
return false;
exit;
}
But since $my_file is a URL, it doesn´t work. Can anybody help?
Thx!
--
http://www.php.net/manual/en/function.file-exists.php
http://master.php.net/manage/user-notes.php?action=edit+25971
http://master.php.net/manage/user-notes.php?action=delete+25971
http://master.php.net/manage/user-notes.php?action=reject+25971