Making Php Run Infinitely...

liunx

Guest
If I try and run a PHP script that takes a few hours to run, it will stop after about 25 minutes. I'm pretty sure it's because of a server setting in the php.ini file. I decided to install Apache on my computer, and I got PHP installed as well.<br /><br />Can anyone help me configure PHP so that it doesn't kill the script after 25 minutes. I plan on running a few things locally to take load off of my TCH site.<br /><br />max_execution_time = 30 ; Maximum execution time of each script, in seconds<br />max_input_time = 60; Maximum amount of time each script may spend parsing request data<br />memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)<br /><br />Those are the current settings for things in the php.ini file that may be causing the problem.<br /><br />If you know of a PHP command that let's the script run forever that would be great as well.<br /><br />Thanks. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /><!--content-->
<a href="http://us2.php.net/set_time_limit" target="_blank">http://us2.php.net/set_time_limit</a><br /><br />This will only work if php is not running in safe mode.<!--content-->
 
Back
Top