Skip to content

Instantly share code, notes, and snippets.

@amad
Created January 31, 2014 07:49
Show Gist options
  • Save amad/8728048 to your computer and use it in GitHub Desktop.
Save amad/8728048 to your computer and use it in GitHub Desktop.
<?php
// Turn off output buffering
ini_set('output_buffering', 'off');
// Turn off PHP output compression
ini_set('zlib.output_compression', false);
//Flush (send) the output buffer and turn off output buffering
while (@ob_end_flush());
// Implicitly flush the buffer(s)
ini_set('implicit_flush', true);
ob_implicit_flush(true);
echo "add this";
echo str_pad("",1024," ");
echo "<br />";
ob_flush();
flush();
sleep(5);
echo "Program Output";
ob_flush();
flush();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment