Re: time limt
| From: | Richard Lynch | Date: | Wed, 03 Oct 2001 03:45:03 +0000 |
| Subject: | Re: time limt | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69698@lists.php.net to get a copy of this message | ||
file() won't let you set the time-out...
But http://php.net/fopen will.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Roel <roel@datablock.be>
Newsgroups: php.general,php.windows,php.dev
To: <php-dev@lists.php.net>; <php-general@lists.php.net>;
<php-windows@lists.php.net>
Sent: Sunday, September 30, 2001 2:12 PM
Subject: time limt
> Hi,
>
> set_time_limit() and max_execution_time() wont work on this script.
>
> $url = "http://www.example.com;
> $file = implode('',file($url));
> if(!$file)
> {
> print("error");
> }
>
> My question is how can I make the script time out if the server where I
want
> to connect to is busy. Now the script will time out after 30 (default)
> seconds. I want to connect, if the server is busy then a message "server
> busy" should appear but not after 30 seconds!
>
> I'm not working local so I can't change the default 30 sec.
>
> Thanks very much!
> Roel
>
>