NFreak Posted August 17, 2006 Share Posted August 17, 2006 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. 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. max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) Those are the current settings for things in the php.ini file that may be causing the problem. If you know of a PHP command that let's the script run forever that would be great as well. Thanks. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted August 17, 2006 Share Posted August 17, 2006 (edited) http://us2.php.net/set_time_limit This will only work if php is not running in safe mode. Edited August 17, 2006 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.