|
|
|
|
|
|
![]() |
#1 |
Registered User
|
Get back some good info on your server
If you are paying for hosting and wondering about info on box you are hosted on heres some cool code for you
<<<---START BELOW HERE--->>> ob_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; <---END HERE---> Take this code, copy an paste it into notepad, save the file as anything you like example "whatsgoingon.php" up load it to a directory on your server and run it. IE if you place it in a directory called www.yourdomain.com/php then you would type this in your browser www.yourdomain.com/php/whatsgoingon.php I got this from the php website today. The only thing I dont like about it is it outputs a whole bunch of wakky colors and you have to keep refreashing to find one you can read. But it is a nice thing, as like me I found out today my host had a very old version of php and this could be causing issues with my site.. Hope this helps, jugg.. |
![]() |
![]() |
|
|