How Can We Increase The Execution Time Of A PHP Script?

How can we increase the execution time of a PHP script?

By default the PHP script takes 30secs to execute. This time is set in the php.ini file. This time can be increased by modifying the max_execution_time in seconds. The time must be changed keeping the environment of the server.

You can use one of following methods to increase the execution time

1. in PHP file

ini_set(“max_execution_time”, 0);

2. in htaccess

php_value max_execution_time 0

3. in php.ini

max_execution_time = 0;

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments