Re: Re: shedule a php script

From: Date: Sat, 05 Jun 2004 16:49:57 +0000
Subject: Re: Re: shedule a php script
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-187692@lists.php.net to get a copy of this message
Thomas Seifert wrote:
I would recommend the cronjob too but if you want to just keep the script running, do a while-loop around your code, i.e. while(1) { ... your code sleep(120); // sleep 120 seconds } --- the require should be outside of the loop IMHO ;).
Or if you want to run the script from the browser, use meta-refresh, see "Refresh Page" thread on this list.

« previous php.general (#187692) next »