Colorful phpinfo();
Just for fun and if you have nothing to do, run this custom phpinfo(); to get a view of the old and dull phpinfo with cool colors.
<?phpob_start();
phpinfo();
$phpinfo = ob_get_contents();
ob_end_clean();preg_match_all(‘/#[0-9a-fA-F]{6}/’, $phpinfo, $rawmatches);
for ($i = 0; $i < count($rawmatches[0]); $i++)
$matches[] = $rawmatches[0][$i];
$matches = array_unique($matches);$hexvalue = ’0123456789abcdef’;
$j = 0;
foreach ($matches as $match)
{$r = ‘#’;
$searches[$j] = $match;
for ($i = 0; $i < 6; $i++)
$r .= substr($hexvalue, mt_rand(0, 15), 1);
$replacements[$j++] = $r;
unset($r);
}for ($i = 0; $i < count($searches); $i++)
$phpinfo = str_replace($searches, $replacements, $phpinfo);
echo $phpinfo;
?>
Once you’re done, refresh your browser to see more color schemes. Very old, but still very cool. ;)
–aj
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

Hehe this is pretty cool :D
nice…