How can I stop my PHP script timing out?
First you should consider whether a script that takes more than 30 seconds to run is suitable for a web server, but if there is a special instance where it is, or indeed if you are running PHP on your local server / machine, then you can adjust this with the following setting:
<?php
set_time_limit(500);//increase time out to 500 seconds
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More other PHP Questions
I have lots of if else logic - is there another option?How do I add comments to my PHP script?
What are autoglobals?
How do I define a constant in PHP?
How do I check if a date entered exists?
