set timeout for fread() ?
| From: | Arash Dejkam | Date: | Fri, 12 Oct 2001 11:42:56 +0000 |
| Subject: | set timeout for fread() ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70943@lists.php.net to get a copy of this message | ||
Hi,
how can I set timeout for fread() ?
I have some code like this :
if ( $f = fopen( "http://$domain/$file" ,
"r" ) )
$i=fread($f,5000);
for some specific $domains which the server can't read from because of
network problems the script hangs because fread() doesn't have any timeout
and the script waits to receive data forever !
help me please.
Arash