Created
February 3, 2013 11:42
-
-
Save jbrooksuk/4701443 to your computer and use it in GitHub Desktop.
Clear PHP buffers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function flush_buffers() { | |
echo(str_pad("", 2048, " ")); // Fix Chrome buffers. | |
ob_end_flush(); | |
@ob_flush(); // Suppress potential errors | |
flush(); | |
ob_start(); | |
} | |
?> |
xeoncross
commented
Feb 4, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment