View difference between Paste ID: fZHNaH73 and 1e9Y07Aq
SHOW: | | - or go back to the newest paste.
1
<?php
2
3
// ==============================
4
5
// Server Uptime And Hardware Information |
6
7
// ==============================
8
9
?>
10
11
12
13
<html>
14
15
<head>
16
17
<title><?php echo $SERVER_NAME; ?> - Server Information</title>
18
19-
<b>System Information:</b>
19+
20
21
BODY { FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
22
23
</STYLE>
24
25
</head>
26
27
<body>
28
29
<pre>
30
31
<b>Uptime:</b> 
32
33
<?php system("uptime"); ?>
34
35
36
37
<b>Server's Full Name:</b>
38
39
<?php system("uname -a"); ?>
40
41
42
43
44
<b>Memory Usage (MB):</b> 
45
46
<?php system("free -m"); ?>
47
48
49
50
51
52
<b>Disk Usage:</b> 
53
54
<?php system("df -h"); ?>
55
56
57
58
59
60
<b>CPU Information:</b> 
61
62
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
63
64
<b>System Temp/Voltage:</b>
65
66
<?php system("sensors"); ?>
67
68
</pre>
69
70
71
72
<br>
73
74
<br>
75
76
</body>
77
78
</html>