set_time_limit 


php apg

LIMITS the maximum execution  time  for a script.



<?php

bool set_time_limit 
int $seconds )


where,

$seconds Number of seconds to set the maximum execution time
  
?>

 $seconds 


Number of  $seconds  to set the maximum execution time.

The default is  $seconds = 30, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out.

If $seconds = 0, no time limit is imposed.





This function has no effect when PHP is running in safe mode.

For this function to work perfectly, you must either disable safe mode or change the time limit directly in php.ini.