Guest User

Untitled

a guest
Nov 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. date_default_timezone_set('UTC');
  4. $seconds_today = time() - strtotime('today');
  5.  
  6. while (true) {
  7. if ($seconds_today > time() - strtotime('today')) {
  8. print('First loop of the new day');
  9. }
  10. $seconds_today = time() - strtotime('today');
  11. sleep(1);
  12. }
  13.  
  14. ?>
Add Comment
Please, Sign In to add comment