Friday, October 15, 2010

Increase PHP Script Execution Time Limit Using ini_set()

Though PHP probably isn't the most efficient way of processing the file, I'll usually use PHP because it makes coding process much faster. To prevent the script from timing out, I need to increase the execution time of the specific processing script. Here's how I do it.
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
Place this at the top of your PHP script and let your script loose!

No comments:

Post a Comment