note 40276 added to function.phpinfo
| From: | LeventKurt at rn2 dot php dot net | Date: | Fri, 27 Feb 2004 07:59:32 +0000 |
| Subject: | note 40276 added to function.phpinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65863@lists.php.net to get a copy of this message | ||
On some unix / linux systems, phpinfo() output can be very ugly outlook, to overcome this situation
I use to following based on the script of "gree dot kmd at wo dot cz" above :
<?
ob_start();
phpinfo();
$php_info .= ob_get_contents();
ob_end_clean();
// configure command:
$php_info = str_replace("' '", " \<br>", $php_info);
$php_info = str_replace("'", "", $php_info);
// include_path:
$php_info = str_replace(".:/", "/", $php_info);
// paths:
$php_info = str_replace(":/", "<br>/", $php_info);
$php_info = str_replace("<br>//", "://", $php_info); // correct urls
// LS_COLORS and some paths:
$php_info = str_replace(";", "; ", $php_info);
$php_info = str_replace(",", ", ", $php_info);
// apache address :
$php_info = str_replace("< ", "<", $php_info);
$php_info = str_replace(">", ">", $php_info);
print ($php_info);
?>
----
Manual Page -- http://www.php.net/manual/en/function.phpinfo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40276
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40276&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40276&report=yes
Search -- http://master.php.net/manage/user-notes.php