jcadima
5/13/2016 - 6:49 PM

Extending the Run Time of a Script

Extending the Run Time of a Script

<?php
/*
The following line, when added to the beginning of a
script, allows the script to take up to 240 seconds to finish 

What Can Go Wrong?
Your server could be running in safe mode, which disables the run-time
alteration of max_execution_time.
Also, double-check your code. Maybe you’ve got an infinite loop somewhere,
or maybe you’re running a loop inside a loop that does nothing.
*/


ini_set(max_execution_time, "240");