PDA

View Full Version : try this on your server TODAY!



nick12
29-06-2006, 06:46 PM
<?php
?>

<html>
<head>
<title><?php echo $SERVER_NAME; ?> - Server Information</title>
<STYLE type=text/css>
BODY { FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
</STYLE>
</head>
<body>
<pre>
<b>Uptime:</b>
<?php system("uptime"); ?>

<b>System Information:</b>
<?php system("uname -a"); ?>


<b>Memory Usage (MB):</b>
<?php system("free -m"); ?>


<b>Disk Usage:</b>
<?php system("df -h"); ?>


<b>CPU Information:</b>
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
</pre>

<br>
<br>
</body>
</html>

Try this got it from dude

Jamie.
29-06-2006, 07:11 PM
wot is it

Flauvo
29-06-2006, 07:15 PM
Just shows your server stats...

lMattz
29-06-2006, 07:15 PM
Im not sure but i think if you put that in a .php file on ure server then go to it, it should show the uptime, disk usage, CPU information, memory usage, disk usage and system information for your server.

Thanks

Jamie.
29-06-2006, 07:17 PM
bad :p

-::Mr.Dave::-
29-06-2006, 07:18 PM
yeh i got that and it shows server statistics n stuff
example on nicks host

nick12
29-06-2006, 07:19 PM
it works on almost every server (all servers) it's pitty good

DaveTaylor
29-06-2006, 07:24 PM
can we see a preview?

nick12
29-06-2006, 07:24 PM
erm havn't got it on mine why not dude put it on his

Jamie.
29-06-2006, 07:25 PM
<?php
phpinfo();
?>
try this on your server


what tht do aswell lol

nick12
29-06-2006, 07:27 PM
That just shows you the server info the other one whos you the uptime ect,

Evasion
30-06-2006, 01:14 AM
Great script, im using this now!

Want to hide these adverts? Register an account for free!