Posts: 2,440
Threads: 73
Joined: May 2009
Reputation:
33
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!
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
(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?
$this->rcon_command("status");
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
(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...
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
(11-15-2009, 12:12 AM)BehaartesEtwas Wrote: (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.
Posts: 36
Threads: 3
Joined: Nov 2009
Reputation:
1
(11-14-2009, 10:07 PM)realchamp Wrote: (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?
$this->rcon_command("status");
Does it require a PHP library ?
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
No just standard installation and ofcause a class to read the output from the server.
Posts: 2,440
Threads: 73
Joined: May 2009
Reputation:
33
(11-15-2009, 12:17 AM)realchamp Wrote: (11-15-2009, 12:12 AM)BehaartesEtwas Wrote: (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!
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
11-15-2009, 04:50 AM
(This post was last modified: 11-15-2009, 04:50 AM by realchamp.)
No. It should not work without.
Posts: 2,440
Threads: 73
Joined: May 2009
Reputation:
33
Shit, is there a way to get that info without an RCON password?
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
Posts: 2,440
Threads: 73
Joined: May 2009
Reputation:
33
Damn, I had a little idea I wanted to try out.
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
There should be a way getting it without RCon pass. Because everyones STEAM_ID is public ingame....
Posts: 2,440
Threads: 73
Joined: May 2009
Reputation:
33
Yea, but is there a way to get it remotely...
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
|