Advertisement
Guest User

Untitled

a guest
Jan 28th, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. ignore_user_abort(true); /* try to change the value to true or false and see the difference */
  4. set_time_limit(0);
  5.  
  6. for($i = 1; $i <= 30; ++$i)
  7. {
  8.     /* these 3 instructions are required to make the function ignore_user_abort/connection_status work */
  9.     echo ' ';
  10.     flush();
  11.     ob_flush();
  12.    
  13.     file_put_contents('counter.txt', $i);
  14.     sleep(1);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement