Raised This Month: $ Target: $400
 0% 

PHP Query


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Patrick1164
SourceMod Donor
Join Date: Aug 2014
Old 08-13-2014 , 09:23   PHP Query
Reply With Quote #1

Hey,

I'm running a CSGO server and am wondering if there is any kind of PHP query for rcon to pull player list / server status etc.

I did find https://github.com/xPaw/PHP-Source-Query-Class but don't fully understand the coding, if anyone could point me in the right direction or even help me code it based on something like this (I'd pay) that would be great!

Thanks in advance.
Patrick1164 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-13-2014 , 09:24   Re: PHP Query
Reply With Quote #2

Depends on what you need. The Player List and Server Status don't require RCON and that class can do it just fine.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Patrick1164
SourceMod Donor
Join Date: Aug 2014
Old 08-13-2014 , 09:25   Re: PHP Query
Reply With Quote #3

I think Player List and Server Status is all I want, I did quickly try the examples given but wasn't sure how to make it specifically look for CSGO source. Any idea?
Patrick1164 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-13-2014 , 09:27   Re: PHP Query
Reply With Quote #4

Mind showing what you tried? Maybe we can help you find the error
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Patrick1164
SourceMod Donor
Join Date: Aug 2014
Old 08-13-2014 , 09:28   Re: PHP Query
Reply With Quote #5

Hi,

Thanks for helping me!

I've tried using this script based on what he already has https://github.com/xPaw/PHP-Source-Q...aster/View.php

In the edit section it says SOURCE for the engine, I'm not sure if that's correct. The webserver & gameserver are on the same dedi so I left localhost and the port the same as they're correct but it did not pull any information.
Patrick1164 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-13-2014 , 09:30   Re: PHP Query
Reply With Quote #6

That should be correct. Any error messages on the screen or in the logs?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Patrick1164
SourceMod Donor
Join Date: Aug 2014
Old 08-13-2014 , 09:32   Re: PHP Query
Reply With Quote #7

Hi,

No error_log file nor any errors on the screen. Would the port be the same as the normal connecting port?
Patrick1164 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-14-2014 , 00:11   Re: PHP Query
Reply With Quote #8

Yes, the port should be the same one as the one your server is running on. I've never tried using localhost, try using the actual IP of the server
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Patrick1164
SourceMod Donor
Join Date: Aug 2014
Old 08-14-2014 , 04:11   Re: PHP Query
Reply With Quote #9

It burst into life then, didn't work last time I tried with the IP. Thanks for the help!
Patrick1164 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode