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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]