Php setTimeLimit


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #reset script execution time limit (as set in MAX_EXECUTION_TIME ini directive)...
  2. #requires SAFE MODE to be OFF!
  3. #Call: setTimeLimit(60);
  4.  
  5. function setTimeLimit( $time = 0 ){
  6. if( ini_get( 'safe_mode' ) != 1 ) {
  7. set_time_limit( $time );
  8. }
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.