Bindiya Manandhar
Bindiya Manandhar

Reputation: 11

Increasing maximum execution time

My code reads from xml file and saves data in mysql database. Through the code it iterates around 8000 times. In the localhost i added the following code in index.php:

    ini_set('max_execution_time', 8000);
    ini_set('memory_limit','512M');

But its not working in the server. What should i do to make it working in the server?

Upvotes: 1

Views: 266

Answers (1)

user849137
user849137

Reputation:

Try set_time_limit(0) that will set it to infinite.

Upvotes: 2

Related Questions