note 51963 rejected from function.file-exists by betz
| From: | betz@php.net | Date: | Sun, 17 Apr 2005 13:09:18 +0000 |
| Subject: | note 51963 rejected from function.file-exists by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88115@lists.php.net to get a copy of this message | ||
Note Submitter: tobias dot kappe at hetnet dot nl
----
When checking remote files for existing, you should use this function:
<?php
function remote_file_exists($file)
{
if(!@file($file))
{
return(false);
}
else
{
return(true);
}
}
?>