Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. ignore_user_abort(true); // Continue running the script even when the client aborts/disconnects
  2. ob_flush();
  3. flush(); // Clean PHP's output buffer
  4. usleep(500000);
  5. echo "0rnrn";
  6. ob_flush(); // Clean output buffer
  7. flush(); // Clean PHP's output buffer
  8. if(connection_aborted() != 0) {
  9. //do something
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement