Re: Didn't work... Re: [PHP] Time-Limit while connection...
| From: | Martin | Date: | Fri, 01 Sep 2000 10:07:32 +0000 |
| Subject: | Re: Didn't work... Re: [PHP] Time-Limit while connection... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14774@lists.php.net to get a copy of this message | ||
Maxim Maletsky wrote:
> Why don't you try something like:
>
> put somewhere in the actual loop..
> if(time == time()+$time_limit)
> $Disconnect =1;
> make $time_limit be the amount of seconds in UNIX timestamp style
>
> and then Whenever value of disconnect becomes one 1 get out...
>
The problem is, that I got no loop ! I got only one function (like ftp_connect
or whios) which I have to timeout.
Martin