Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pomaxa
Created September 3, 2014 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pomaxa/e89cf8830e9151b03089 to your computer and use it in GitHub Desktop.
Save pomaxa/e89cf8830e9151b03089 to your computer and use it in GitHub Desktop.
send request to client browser and proceed with some work.
ob_end_clean();
header("Connection: close");
ignore_user_abort(true);
ob_start();
echo "THIS IS SPARTA";
$size = ob_get_length();
header("Content-Length: $size");
ob_end_flush();
flush();
session_write_close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment