Re: [PHP] Run a script for 20minutes
you can set the maximum execution timeu using either the max_execution_time = 30 ; Maximum execution time of each script, in seconds setting in php.ini or can set it at runtime for a script using the set_time_limit() function check the php manual for more details. hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Martin E. Koss" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 5:20 PM Subject: [PHP] 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 General 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 General 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]
Re: [PHP] Run a script for 20minutes
If you don't want to run the script from the command line you can use ignore_user_abort with set_time_limit(?) in the script to allow you to close the browser and let it do its thing. > 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. > > -- PHP General 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]
Re: [PHP] Run a script for 20minutes
From: "Martin E. Koss" <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 1:08 PM > Is it a surprise that it might take up to 20 or 30 minutes to build over > 20,000 simple HTML files? Maybe you shouldn't run your script through the browser. To me it sounds like you're doing a one-time process that dosen't really send any output back to the browser. Instead it saves all the generates html-files on disk, right? Try running: php.exe or php.exe /q to avoid the standard php-headers - Carsten -- PHP General 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]
Re: [PHP] Run a script for 20minutes
Something doesn't seem right here. I've executed scripts that have taken 4 hours to complete in the past and the only thing I had to set was: set_time_limit(0); Are you echoing anything to the screen, if not maybe you should after every loop increment, you may also need to use the flush() command. Hope this helps. Andy Woolley www.databasewatch.com - Original Message - From: "Martin E. Koss" <[EMAIL PROTECTED]> To: "Dominick Vansevenant" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 12:08 PM Subject: RE: [PHP] Run a script for 20minutes > I'm using a mySQL database but to be honest I think the only thing that was > timing out was the browser, since hacking the registry to eliminate that > timeout the only thing I can do is wonder why it only finishes half what it > is supposed to do. > > I'll try it on a faster machine later - it's on a AMD K6-2/366 with 128mb > ram. I have a Athlon 900 that I could run it on but that's not a machine I > want to tinker too much with - will go for a trusty old 450 first. > > Is it a surprise that it might take up to 20 or 30 minutes to build over > 20,000 simple HTML files? > > Martin. > > -Original Message- > From: Dominick Vansevenant [mailto:[EMAIL PROTECTED]] > Sent: 12 February 2001 11:54 > To: Martin E. Koss; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] Run a script for 20minutes > > > I think there are timeouts on php as well: > > This is taken from the php.ini file. > > max_execution_time = 30 ; Maximum execution time of each script, in > seconds > > I hope this helps you, you can find php.ini in your windows directory. > > If you are using a database, also check that for timeouts. > > D. > > -Original Message- > From: Martin E. Koss [mailto:[EMAIL PROTECTED]] > Sent: maandag 12 februari 2001 12:51 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] 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 General 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 General 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 General 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 General 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]
RE: [PHP] Run a script for 20minutes
I'm using a mySQL database but to be honest I think the only thing that was timing out was the browser, since hacking the registry to eliminate that timeout the only thing I can do is wonder why it only finishes half what it is supposed to do. I'll try it on a faster machine later - it's on a AMD K6-2/366 with 128mb ram. I have a Athlon 900 that I could run it on but that's not a machine I want to tinker too much with - will go for a trusty old 450 first. Is it a surprise that it might take up to 20 or 30 minutes to build over 20,000 simple HTML files? Martin. -Original Message- From: Dominick Vansevenant [mailto:[EMAIL PROTECTED]] Sent: 12 February 2001 11:54 To: Martin E. Koss; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Run a script for 20minutes I think there are timeouts on php as well: This is taken from the php.ini file. max_execution_time = 30 ; Maximum execution time of each script, in seconds I hope this helps you, you can find php.ini in your windows directory. If you are using a database, also check that for timeouts. D. -Original Message- From: Martin E. Koss [mailto:[EMAIL PROTECTED]] Sent: maandag 12 februari 2001 12:51 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] 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 General 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 General 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 General 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]
RE: [PHP] Run a script for 20minutes
I think there are timeouts on php as well: This is taken from the php.ini file. max_execution_time = 30 ; Maximum execution time of each script, in seconds I hope this helps you, you can find php.ini in your windows directory. If you are using a database, also check that for timeouts. D. -Original Message- From: Martin E. Koss [mailto:[EMAIL PROTECTED]] Sent: maandag 12 februari 2001 12:51 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] 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 General 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 General 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]