Server Status.php

🚫
Exiled
Joined
Dec 20, 2011
Messages
462
Reaction score
30
Open Notepad

Paste this in it
Code:
<? 
$ip = "SERVER IP"; 
$port = "7002"; 
if (! $sock = @fsockopen($ip, $port, $num, $error, 5)) 
echo '<B>Server <FONT COLOR=red>Offline</b></FONT>'; 
else{ 
echo '<B>Server <FONT COLOR=lime>Online</b></FONT>'; 
fclose($sock); 
} 
?>

Save it as status.php and upload it :D
 
I tried that one but it doesn't work for me..

And I'm using No-Ip to host my server so it doesn't show my server status.
 
http://forum.ragezone.com/f705/release-simple-server-status-php-761087/

But nice try, won't update very well and if the server crashes but the program is still open it will say server is online.

That's because all fsock does is checks to see if the port is in use by the server, if the server crashes but the process remains running then ofc it's going to say it's online but you can't get around that, php wasn't written to handle anything as indepth as that. That and pokenet is a piece of sh** anyway and looks like it was coded by a retard so again, theres no getting around it.

Thanks for the share anyway mrsunny even if something similar has already been posted!
 
Back