note 45210 added to function.file-exists
| From: | maxdc89 at hotmail dot com | Date: | Mon, 30 Aug 2004 06:11:36 +0000 |
| Subject: | note 45210 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75634@lists.php.net to get a copy of this message | ||
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';
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.file-exists.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45210
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45210&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45210&report=yes
Search -- http://master.php.net/manage/user-notes.php