Re: Run a script for 20minutes

From: Date: Mon, 12 Feb 2001 12:28:37 +0000
Subject: Re: Run a script for 20minutes
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5518@lists.php.net to get a copy of this message
Don't run it from the browser - just grab the php.exe and invoke the script thusly: php.exe script.php from the command line. Make sure you have set_time_limit(0) in there at the top. To make sure its progressing as expected, put in some sort of progress indicator - ie, if you're processing 1,000,000 lines, you don't want to print every line, so just do something like doLoop { ... if ($ct % 1000 == 0) print "$ct ... "; $ct++; } to print an indicator every 1,000 lines. If its breaking anywhere, this will also help you track down where its breaking. --dave ----- Original Message ----- From: "Martin E. Koss" <mek@mek.co.uk> To: <php-windows@lists.php.net>; <php-general@lists.php.net> Sent: Monday, February 12, 2001 9:50 PM Subject: [PHP-WIN] Run a script for 20minutes > Hi, > I have PHP3 and MySQL on Win98 and am trying to run a script that loops > through a file making process and it needs about 20 - 30 minutes to run. It > generates static HTML files based on content in a database. I've increased > Internet Explorer's timeout to allow for this but for some reason only about > half the processing is done before everything seems to just stop. > > Does anyone know of a very basic way of executing a PHP script on a Win98 > machine without the need for a browser? Or, another way of running this > script that will take some time and create some 22,000 files through the > process. > > Thanks, > > Martin. > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#5518) next »