Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Created December 30, 2009 13:33
Show Gist options
  • Save gabrielfalcao/266046 to your computer and use it in GitHub Desktop.
Save gabrielfalcao/266046 to your computer and use it in GitHub Desktop.
php output buffering
<?php
ob_start();
include("some_file.php");
$stdout = ob_get_contents();
ob_end_clean();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment