note 7159 deleted from fopen by ronabop
| From: | ronabop@php.net | Date: | Thu, 10 Aug 2000 20:27:44 +0000 |
| Subject: | note 7159 deleted from fopen by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-927@lists.php.net to get a copy of this message | ||
<PRE>
$url = "http://blah.comf";
$file = fopen ($url , "r");
if (!$file)
echo "no file";
else echo $url;
</PRE>
Hi, i want to use this little script to check if some file exists.
It works but if the file does not exist
i get an error message.
How can i turn that error message off?
tnx