Skip to content

Instantly share code, notes, and snippets.

@jgornick
Created October 12, 2009 21:14
Show Gist options
  • Save jgornick/208754 to your computer and use it in GitHub Desktop.
Save jgornick/208754 to your computer and use it in GitHub Desktop.
PHP: Capture phpinfo() Output
<?php
function pinfo() {
ob_start();
phpinfo();
$data = ob_get_contents();
ob_clean();
return $data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment