Script Execution Time Limit When Parsing in PHP
The following command sets the maximum execution time for a PHP script in seconds:
<?php
ini_set('max_execution_time', '10000');
?>
The following command removes the limit on the script execution time:
<?php
set_time_limit(0);
?>
It is recommended to use both commands together.