Hi friends,
I want to know that if we want to increase the execution time of php script then, how can we increase the execution time of a php script?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Dec 13, 2011, 4:24 AM
Default time allowed for the PHP scripts to execute is 30s defined in the php.ini file. The function used is set_time_limit(int seconds).
The script execution time can be increased by
- Using sleep() function in PHP script
- Using set_time_limit() function
- The default limit is 30 seconds. The time limit can be set to zero to impose no time limit to pause.
Thanks