| | I have a server for a game on my computer, and want to put a server status code on my website. I was wondering if something like this would work: CODE <? $ip = "IP"; // IP Here $port = PORT; // Port Here if(fsockopen($ip, $port, $errno, $errstr, '10')) echo "The game server is <font color='green'>Online</font>!"; else echo "The game server is <font color='red'>Offline</font>!"; ?> |

