note 25971 rejected from function.file-exists by betz
| From: | betz@php.net | Date: | Sun, 13 Oct 2002 16:43:07 +0000 |
| Subject: | note 25971 rejected from function.file-exists by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38020@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!