RE: [PHP] Didn't work... Re: [PHP] Time-Limit while connection...

From: Date: Fri, 01 Sep 2000 10:09:23 +0000
Subject: RE: [PHP] Didn't work... Re: [PHP] Time-Limit while connection...
Groups: php.general 
Request: Send a blank email to php-general+get-14772@lists.php.net to get a copy of this message
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... -----Original Message----- From: Martin [mailto:martin@thomatechnik.de] Sent: Friday, September 01, 2000 6:53 PM To: php-general@lists.php.net Subject: [PHP] Didn't work... Re: [PHP] Time-Limit while connection... Maxim Maletsky wrote: > what about reload the page or go to another one if time is over? > I tried to add: print "<meta http-equiv=\"refresh\" content=\"2; url=anotherfile.htm\">\n"; flush(); But the redirection is only executed, when pressing the "stop"-button of your browser. Then the browser waits 2 seconds and after that, it redirects. If not pressing the stop-buttons, the script runs and runs... 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

« previous php.general (#14772) next »