note 93795 deleted from function.filesize by danbrown
| From: | danbrown@php.net | Date: | Wed, 30 Sep 2009 00:09:42 +0000 |
| Subject: | note 93795 deleted from function.filesize by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161158@lists.php.net to get a copy of this message | ||
Note Submitter: falkon303 at gmail dot com
----
Here is the fastest way I have found to get the status of a remote file.
<?
error_reporting(0);
if (!file_get_contents("http://www.example.com/somethingfake.php"))
{echo "no file here!";} else {echo "file found!";}
?>