note 8810 deleted from file by ronabop
| From: | ronabop@php.net | Date: | Mon, 02 Oct 2000 10:22:39 +0000 |
| Subject: | note 8810 deleted from file by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5872@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