You are here:  » Maximum execution time


Maximum execution time

Submitted by 1earthling on Fri, 2006-10-13 18:16 in

I very frequently get this error message while parsing external feeds and my script aborts as a result.
How can i prevent my php script from aborting and have it try again to get the feed?

Submitted by support on Fri, 2006-10-13 18:41

Hi,

Provided that your host is not limiting execution time using safe mode, you can disable the time limit for your script by adding the following code at the top (before any other PHP code):

<?php
  set_time_limit
(0);
?>

A time limit of "0" means "unlimited", and your script will then be able to run for as long as necessary.

Cheers,
David.