Re: Time-Limit while connection...
| From: | Wico de Leeuw | Date: | Fri, 01 Sep 2000 09:07:34 +0000 |
| Subject: | Re: Time-Limit while connection... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14755@lists.php.net to get a copy of this message | ||
At 10:51 1-9-00 +0200, Martin wrote:
Hello ! I want to connect to a ftp-server and have a time-limit when the function should stop if the connection if not established in this time. I tried (only for test-reasons, to see, what happens, when the time-limit is exceeded):TimeLimit is for the cpu time not the real time You want real time keep track off it with time(); Greetz, Wico
set_time_limit(1); // Set Time Limit to 1 Sec
for ($i = 0; $i < 10000; $i++)
{ $ftp = ftp_connect("$this->host");
}
But the function runs and runs and runs and it still runs.
Using php4.0.2 on apache.
Any ideas ?
Regards
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net