php-general | 2001092
Date: 09/29/01
- Next message: Martín Marqués: "Re: [PHP] Problem with mail()"
- Previous message: mike <email protected>: "[PHP] Problem with mail()"
- In reply to: Andrew Brampton: "Re: [PHP] A kewl Script, for you someone to test, and show me the results"
- Next in thread: Chris Lee: "Re: [PHP] A kewl Script, for you someone to test, and show me the results"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 06:47 AM 9/29/2001, Andrew Brampton wrote:
>NO,
>Doesn't read the logs, actually connects to the HL server, and reads the
>players/scores.. Programs like GameSpy do it.. its not that hard to actually
>do.. I looked into it a while ago, and all you do is connect to the server,
>send a simple command and it returns a list of players/scores, and you can
>eventually reteive info like current map, time left, and all the server
>settings...
>
>U can see a CGI Perl example of it here:
>http://www.half-life.ewetel.net/cgi-bin/hlds_ld.cgi?212.6.108.253:60010
>
>Bramp
>P.S I may have to make a script to do this for HL in PHP... would anyone
>like that?
Actually, it does just read the logs. hlds_ld is an administration tool
for halflife dedicated servers, and that's the cgi interface to it. It
does nothing with the halflife protocol.
However, there's a program called qstat which speaks
tribes/halflife/quake/quake2/quake3/quakeworld/etc protocols and will
output the information you want. I think it would be easier to call that
then parse the results to do what you want with it.
let me know if you need further help,
-j
--------------------------------------------------------
Jeffrey Paul sneak <email protected> (877) 748 3467
ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749
PGP: 0xF50BB9D7 A21AFD828C30EC77CCCC545DA0B3F501F50BB9D7
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Martín Marqués: "Re: [PHP] Problem with mail()"
- Previous message: mike <email protected>: "[PHP] Problem with mail()"
- In reply to: Andrew Brampton: "Re: [PHP] A kewl Script, for you someone to test, and show me the results"
- Next in thread: Chris Lee: "Re: [PHP] A kewl Script, for you someone to test, and show me the results"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

