11-14-2009, 09:21 PM (This post was last modified: 11-14-2009, 09:29 PM by loopyman.)
I'm looking for help with PHP Sockets, basically all I want to do is query a server to receive information about that server (player count, hostname, etc)
I have been butchering and looking at different php scripts that I have found on the web ( GameQ, AXG, and an old srcds post ). I used to be able to do this with a function from a PHP extension, but it wont run anymore.
What would be really helpful is a simple script that would accomplish this, I have no idea how sockets communicate with game servers, so anything would be helpful.
EDIT: I just found another post with some helpful info. http://forums.srcds.com/viewtopic/4441
Alright, I got what I needed from the above post.
Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
(11-14-2009, 09:21 PM)loopyman Wrote: I'm looking for help with PHP Sockets, basically all I want to do is query a server to receive information about that server (player count, hostname, etc)
I have been butchering and looking at different php scripts that I have found on the web ( GameQ, AXG, and an old srcds post ). I used to be able to do this with a function from a PHP extension, but it wont run anymore.
What would be really helpful is a simple script that would accomplish this, I have no idea how sockets communicate with game servers, so anything would be helpful.
EDIT: I just found another post with some helpful info. http://forums.srcds.com/viewtopic/4441
Alright, I got what I needed from the above post.
Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?
(11-14-2009, 09:21 PM)loopyman Wrote: Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?
even HLSW gives you only the steamids if you have the RCON password. so I suppose it's not possible without...
(11-14-2009, 09:21 PM)loopyman Wrote: Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?
even HLSW gives you only the steamids if you have the RCON password. so I suppose it's not possible without...
Ofcause, it gives you them with "status" and probably implode() or explode() an x amount of characters.
(11-14-2009, 09:21 PM)loopyman Wrote: I'm looking for help with PHP Sockets, basically all I want to do is query a server to receive information about that server (player count, hostname, etc)
I have been butchering and looking at different php scripts that I have found on the web ( GameQ, AXG, and an old srcds post ). I used to be able to do this with a function from a PHP extension, but it wont run anymore.
What would be really helpful is a simple script that would accomplish this, I have no idea how sockets communicate with game servers, so anything would be helpful.
EDIT: I just found another post with some helpful info. http://forums.srcds.com/viewtopic/4441
Alright, I got what I needed from the above post.
Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?
(11-14-2009, 09:21 PM)loopyman Wrote: Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?
even HLSW gives you only the steamids if you have the RCON password. so I suppose it's not possible without...
Ofcause, it gives you them with "status" and probably implode() or explode() an x amount of characters.
Would this work without an rcon password?
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!