Created
July 29, 2013 14:38
-
-
Save Webklex/6104765 to your computer and use it in GitHub Desktop.
PHP Cronjobalternative
This file contains hidden or 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
ignore_user_abort(1); // run script in background | |
set_time_limit(0); // run script forever | |
$interval=60*15; // do every 15 minutes... | |
do{ | |
// add the script that has to be ran every 15 minutes here | |
// ... | |
sleep($interval); // wait 15 minutes | |
}while(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment