Zamthos,
That snippet of code is only going to do you any good on a Linux system.
If you want to make a way to show the server is online, I suggest a way of either
A) Parsing the Server List Page on EQEmulator for your needs...
B) Telnetting into port 9000 (World Server) of your server and pulling the information that you want through the telnet console. This will require you to have PHP telnet client to do this or Perl CGI Telnet client. Perl's telnet client is superb but then you also have to figure out how to use CGI for web servers.
|