الشركة الأفضل لبرمجة المواقع والتطبيقات و عرض أفضل سرفيرس في العالم العربي
Statistics and counters: Server Stats
server_stats()
<?
function server_stats() {
$server_software_get = getenv('SERVER_SOFTWARE');
$server_software = explode(" ", $server_software_get);
$server_name = getenv('SERVER_NAME');
$gateway_interface = getenv('GATEWAY_INTERFACE');
$server_protocol = getenv('SERVER_PROTOCOL');
$server_port = getenv('SERVER_PORT');
?>
<table border="0" cellspacing="0" bgcolor="#000000">
<tr>
<td><table border="0" cellspacing="0">
<tr>
<td colspan="2" bgcolor="#FF8000"><p
align="center"><font size="2" face="Verdana Ref"><strong>Server
Statistics</strong></font></p>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="top"><font size="2"
face="Verdana Ref">Server Software:</font></td>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref">
<?
for ($i = 0; $i < count($server_software); $i++) {
echo $server_software[$i];
echo "<br>";
}
?>
</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref">Server Name:</font></td>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref"><?echo $server_name;?></font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref">Server Protocol:</font></td>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref"><?echo $server_protocol;?></font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref">Server Port:</font></td>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref"><?echo $server_port;?></font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref">Server CGI Revision:</font></td>
<td bgcolor="#FFFFFF"><font size="2"
face="Verdana Ref"><?echo $gateway_interface;?></font></td>
</tr>
</table>
</td>
</tr>
</table>
<?
}
?>
|