Re: Re: shedule a php script

From: Date: Sat, 05 Jun 2004 17:09:56 +0000
Subject: Re: Re: shedule a php script
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-187698@lists.php.net to get a copy of this message
alright , thank u very much, i successfully run with that while loop . it is working. so thank u , very much curlys ----- Original Message ----- From: "Marek Kilimajer" <lists@kilimajer.net> To: "Thomas Seifert" <thomas-lists@mysnip.de> Cc: <php-general@lists.php.net> Sent: Saturday, June 05, 2004 10:49 PM Subject: Re: [PHP] Re: shedule a php script > 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. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#187698) next »