Posts: 2
Threads: 1
Joined: Apr 2011
Reputation:
0
Hello ->
I need some guidance. What I want to do is send each new line of console output from SRCDS to an external web server where a PHP script will handle it.
What is the simplest way to do this?
Thanks for your help =]
Posts: 504
Threads: 9
Joined: Oct 2009
Reputation:
3
if you are using a webserver PHP will have a max execution time after a process will be stopped. because of that you can not use PHP as a Deamon.
If you search the web you will find projects written in phyton that offer a deamon that requests the logdata (logadress add webhostip:port) and is able to parse the incomming data.
You also could take a look at Hlstatsx CE. Their logparser/deamon is written in Perl.
Posts: 2
Threads: 1
Joined: Apr 2011
Reputation:
0
Would it be feasible to create a smallish serverside mod to send each new console line as POSTDATA to a PHP script?
Posts: 3,906
Threads: 404
Joined: Oct 2007
Reputation:
21
As mentioned, you can make SRCDS send out the live logs... I wouldn't mess with creating a custom plugin unless you had to. Plugins need to be updated, live logs don't.
~ Mooga ...w00t? -
SRCDS.com on Twitter
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.