Submitted by 1earthling on Fri, 2006-10-13 18:16 in Magic Parser
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?
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.
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.