Created
July 28, 2014 21:38
-
-
Save rianorie/8a5cd812b03aa30c46ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(5); | |
ini_set('max_execution_time', 5); | |
function shutdown() | |
{ | |
// This is our shutdown function, in | |
// here we can do any last operations | |
// before the script is complete. | |
echo 'Script executed with success', PHP_EOL; | |
} | |
register_shutdown_function('shutdown'); | |
for($i = 0; $i < 10; $i++) { printf("Sleeping.. %d\n", $i+1); sleep(1); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment