Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created February 8, 2010 23:57
Show Gist options
  • Save wtnabe/298748 to your computer and use it in GitHub Desktop.
Save wtnabe/298748 to your computer and use it in GitHub Desktop.
disable PHP's output buffering
/**
* turn off output buffering cleanly
*/
function turnoff_buffering() {
while ( ob_get_level() > 0 ) {
ob_end_clean();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment