note 110818 added to function.phpinfo

From: Date: Tue, 11 Dec 2012 18:50:11 +0000
Subject: note 110818 added to function.phpinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-192473@lists.php.net to get a copy of this message
All the solutions listed here, did not work for me. So, I wrote an easy-dummy one that works when other code attempts fails: ob_start(); phpinfo(); $pi = ob_get_contents(); ob_end_clean(); $order = array("\r\n", "\n", "\r"); $replace = '<br /><font color="grey"><b>'; // Processes \r\n's first so they aren't converted twice. $newstr = str_replace($order, $replace, $pi); $newstr = str_replace("=>", "=></b></b></font> </font> ", $newstr); echo $newstr; ---- Server IP: 69.147.83.199 Probable Submitter: 72.52.91.2 (proxied: 173.181.114.94) ---- Manual Page -- http://php.net/manual/en/function.phpinfo.php Edit -- https://master.php.net/note/edit/110818 Del: integrated -- https://master.php.net/note/delete/110818/integrated Del: useless -- https://master.php.net/note/delete/110818/useless Del: bad code -- https://master.php.net/note/delete/110818/bad+code Del: spam -- https://master.php.net/note/delete/110818/spam Del: non-english -- https://master.php.net/note/delete/110818/non-english Del: in docs -- https://master.php.net/note/delete/110818/in+docs Del: other reasons-- https://master.php.net/note/delete/110818 Reject -- https://master.php.net/note/reject/110818 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192473) next »