note 45210 deleted from function.file-exists by aidan
| From: | aidan@php.net | Date: | Sat, 18 Sep 2004 05:27:02 +0000 |
| Subject: | note 45210 deleted from function.file-exists by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76925@lists.php.net to get a copy of this message | ||
Note Submitter: maxdc89 at hotmail dot com
----
Utilisez plutot ça :
<?php
$url = 'http://site.com/img.png';
$page = @file_get_contents("$url");
if ($page == NULL)
{
echo $url.' file doesn\'t exist';
}
else
{
echo $url.' file exists';
}
?>