bunnytaur

System Info

Apr 1st, 2011
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <?php
  2. // ==============================
  3. // Server Uptime And Hardware Information |
  4. // ==============================
  5. ?>
  6.  
  7. <html>
  8. <head>
  9. <title><?php echo $SERVER_NAME; ?> - Server Information</title>
  10. <STYLE type=text/css>
  11. BODY { FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
  12. </STYLE>
  13. </head>
  14. <body>
  15. <pre>
  16. <b>Uptime:</b>
  17. <?php system("uptime"); ?>
  18.  
  19. <b>System Information:</b>
  20. <?php system("uname -a"); ?>
  21.  
  22.  
  23. <b>Memory Usage (MB):</b>
  24. <?php system("free -m"); ?>
  25.  
  26.  
  27. <b>Disk Usage:</b>
  28. <?php system("df -h"); ?>
  29.  
  30.  
  31. <b>CPU Information:</b>
  32. <?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
  33. </pre>
  34.  
  35. <br>
  36. <br>
  37. </body>
  38. </html>
Advertisement
Add Comment
Please, Sign In to add comment