Mistikpso 0 Report post Posted July 21, 2005 (edited) My Friend and i made an mmorpg we decided to make a code so the users could tell when the game server was runningthis codoe has many other uses to like monitor a website or w/e you want to do. <? $ip = "youriphere"; $port = "yourporthere"; if (! $sock = @fsockopen($ip, $port, $num, $error, 5)) echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B><FONT COLOR=lime>Online</b></FONT>'; fclose($sock); } ?> -open a text editor like notepad-Put this code in your <Body> of index.html or w/e page you are using-after you finish adding the code make sure you set the port and IP-and when you add all the data save your file as index.php-upload the file -Finished ~ your server status is set ~ Edited April 11, 2008 by Mistikpso (see edit history) Share this post Link to post Share on other sites
Florisjuh 0 Report post Posted July 21, 2005 (edited) Very nice tutorial, I've been looking for a script like this to monotor my Wolfenstein Enemy Teritory game servers, and put some information about it on my Xisto website (I run a clan)... Notice from snlildude87: Seriously, did you have to quote the entire post? When there are no quotes, it's understood that you're replying to the first post in the thread. Edited July 21, 2005 by snlildude87 (see edit history) Share this post Link to post Share on other sites
mizako 0 Report post Posted July 21, 2005 (edited) I agree it is an easy but useful script. However i could not watch your script in action. It seems your link is a broken one. Notice from snlildude87: Seriously, did you have to quote the entire post? When there are no quotes, it's understood that you're replying to the first post in the thread. Edited July 21, 2005 by snlildude87 (see edit history) Share this post Link to post Share on other sites
Mistikpso 0 Report post Posted July 21, 2005 i just tested the link and it seems fine - it might take a second to see the main page. Share this post Link to post Share on other sites
snlildude87 0 Report post Posted July 21, 2005 After two posts, I have to say something...please do not quote the first post in the thread. It's all understood.Thank you. Share this post Link to post Share on other sites
rvalkass 5 Report post Posted July 21, 2005 I have seen a few of these, but I always thought they were long and complicated. Thanks very much for this script. Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted July 22, 2005 hmmm not bad of a scriptm could be useful on alot of gaming servers. kudos Share this post Link to post Share on other sites
Mistikpso 0 Report post Posted July 22, 2005 yeah im putting a LDU800 on my site so i have to get rid of the demo - sry Share this post Link to post Share on other sites
engalex 0 Report post Posted July 24, 2005 nice man Share this post Link to post Share on other sites
Dynomite 0 Report post Posted August 2, 2005 Nice script, I also made a slight change for anyone who wants it.If you are are hosted on Xisto and you have an upload module that uses FTP you can modify this to check if the uploader will work by setting using these settings.$ip = "69.50.188.18";$port = "21";So your overall-all script would be <html><body><?php$ip = "69.50.188.18";$port = "21";if (! $sock = @fsockopen($ip, $port, $num, $error, 5))echo '<div align="center">The upload is <font color=red><b>Offline</b></FONT></div><br><br>';else{echo '<div align="center">The upload is: <font color=green><b>Online</b></FONT></div><br><br>';fclose($sock);} ?></body></html> Share this post Link to post Share on other sites
faith 0 Report post Posted August 7, 2005 Okay well the link for hte demo didnt work for me, and when i tried to do it my slef, nothing loaded. Im not the best at this tuff and probally did it wrong but i thought ide let you know! seems liek an aweomse script tho! Share this post Link to post Share on other sites
Adamrosso 0 Report post Posted August 7, 2005 Nice script. I will add this to my website for my users to see what a great host i have =). Thank's for sharing your script; Mistik =D Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 7, 2008 Ragnarok Server Status Can someone post a ragnarok server status script? -reply by sum1 Share this post Link to post Share on other sites