Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- date_default_timezone_set('UTC');
- $seconds_today = time() - strtotime('today');
- while (true) {
- if ($seconds_today > time() - strtotime('today')) {
- print('First loop of the new day');
- }
- $seconds_today = time() - strtotime('today');
- sleep(1);
- }
- ?>
Add Comment
Please, Sign In to add comment