Server Status On PHP Coded Website

08/02/2008 00:21 BrainlessX#1
hi can someone help me to put a server status on the website? my website is php coded
08/02/2008 01:00 IcedEarth#2
Just a small expample of it ;)

PHP Code:
<?php  "YOURIP";  = "PORT";?> 
<td align="left">Login Server: 
<?php  = @fsockopen(, , , , 1); 
if (!) { echo 
"<font style='color: #FF3300'><B>Offline</B></font></br>"
} else { echo 
"<font style='color: #009933'><B>Online</B></font></br>"
fclose(); 

?>
06/25/2010 10:29 sohaib#3
i put this in notepad and i name it "serverstatus.php" then i put it in c:/appserv/www

and after that, how can i add it to my website" [Only registered and activated users can see links. Click Here To Register...]??

please help
06/25/2010 10:38 Huseby#4
Whats up with all the bumps recently? :confused:

#Closed