note 8810 added to file
| From: | bry at bry dot net | Date: | Fri, 29 Sep 2000 02:21:33 +0000 |
| Subject: | note 8810 added to file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5572@lists.php.net to get a copy of this message | ||
I'm doing this segment of code...
$fcontents = join ('', file ('http://www.yahoo.com'));
if (($fcontents == "") || ($fcontents)) {
//blah blah
}
But every once in a while I get the following message...
Warning: file("http://www.yahoo.com") - Operation
timed out
So how do I customize the error message? Basically just want to test, if it times out or fails in
general, I want to print out my own text instead of having that show up on my site.
Thanks!
-Bry
http://www.php.net/manual/function.file.php