note 69556 modified in function.phpinfo by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 00:57:38 +0000 |
| Subject: | note 69556 modified in function.phpinfo by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141875@lists.php.net to get a copy of this message | ||
To obtain a phpinfo without headers (and css) :
<?php
ob_start();
phpinfo();
$info = ob_get_contents();
ob_end_clean();
$info = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $info);
?>
You can then style your tables & headings :)
--was--
To obtain a phpinfo without headers (and css) :
<?
ob_start();
phpinfo();
$info = ob_get_contents();
ob_end_clean();
?>
$info = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $info);
You can then style your tables & headings :)
http://php.net/manual/en/function.phpinfo.php