faqts : Computers : Programming : Languages : PHP : Installation and Setup : Configure

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

27 of 30 people (90%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Where do I have to increase the script execution time in Apache/PHP configuration?

Jul 2nd, 2001 07:30
Jonathan Sharp, Sri Lakshmi, Ben Udall,


Use set_time_limit(int) where int is the number of seconds for 
execution of the script. If it's set to 0 it's unlimited. Default value 
is 30. *Note this call only works when PHP is not running in safe mode.
http://php.net/manual/en/function.set-time-limit.php
Also in your php.ini file there is a "max_execution_time = int" where 
int is the number of seconds allowed for a script to execut.