0 Pic0o Posted December 5, 2004 Share Posted December 5, 2004 Excellent Beats a ghetto Mapped Drive Option. I Look forward to checking out when more Capable, and not "Cleaning" * I used to Run Dusty's Stats and had an Automated Script to Pull from my *Nix Webserver, and Download the Stats from the Dedi there. Problem w/ that was, his Stats Logged to a Database, and when logged, there was No UniqueIdentifier Set, so the Same Data that was already sent to DB was Duplicated. Also, the Database had no problem reaching 10 MB in ~ 20 days or so. Is there a PHP Call I can Throw to have an IIS Box Hit an FTP, Replace the Current File, and process the Stat Script? Here was the Nix Code I was Using: exec("wget -q ftp://user:[email protected]:21/mtaserver.log"); That would Grab from the Root MTA Home Dir of the FTP, and I'd have my Log. Since the Current Stats @ Mta.funtimebliss.com are just reading from a Local Log, if I can use the Code Above on a Windows Box, or Similar, I'd be a happy boy Link to comment
0 Stickybit Posted December 8, 2004 Author Share Posted December 8, 2004 I see no problem in running the script on a PHP capeable IIS server... unless the Windows version of MTA server is using an other logformat. Instead of executing wget.. you can use fopen to open the remote file in the mode needed. -Stickybit Link to comment
0 Stickybit Posted December 8, 2004 Author Share Posted December 8, 2004 Click here to see the script in action. -Stickybit Link to comment
0 noog Posted December 23, 2004 Share Posted December 23, 2004 Click here to see the script in action.-Stickybit that's a bad loop Link to comment
0 Stickybit Posted December 25, 2004 Author Share Posted December 25, 2004 Nope .. you just visited the page while I was moving to another server. i works fine now. Regards Stickybit Link to comment
0 noog Posted December 25, 2004 Share Posted December 25, 2004 Parse error: parse error in /var/fr4g/serverlog.php on line 60 only thing I changed was put the serverlog address as an absoloute path Link to comment
0 Stickybit Posted December 26, 2004 Author Share Posted December 26, 2004 I gues that you has got some wrapped lines after having copied the code to file. Remove these wraps, and give your webserver read permissions on the logfile.. and you should be up running. Bugfixed version Regards Stickybit Link to comment
0 Stickybit Posted June 12, 2005 Author Share Posted June 12, 2005 The script has been slightly modyfied - so it matches version 0.5. Click on the "Bugfixed version" link in the above posting, to get the new version. MTA team: Why do you erase the logfile when restarting the server? It would be nice if you just apended data to the logfile instead of emptying it on server starts. Regards Sticky Link to comment
0 Posty Posted June 13, 2005 Share Posted June 13, 2005 nice 6 month bump He bumped it because he updated his code to work with 0.5... What's wrong with that? Link to comment
0 MAD_BOY Posted June 13, 2005 Share Posted June 13, 2005 yeah, Jani lacks common sense anyway, nice to see that you updated this Link to comment
0 Stickybit Posted January 24, 2006 Author Share Posted January 24, 2006 Hi guys I have updated the script to match MTA:SA version 1.0: Click here to see an example. Click here to see the sourcecode. Grap a copy for your website. Regards Stickybit Link to comment
0 Si|ent Posted January 24, 2006 Share Posted January 24, 2006 Nice work Stickybit, fast updating to support SA too. excellent Link to comment
0 GTASA Posted January 31, 2006 Share Posted January 31, 2006 Hey Could anyone do a simple small script that only shows if server is offline or online. Thank you. Link to comment
0 Stickybit Posted February 1, 2006 Author Share Posted February 1, 2006 That's not an easy task - since MTA traffic is UDP - and the software is closed source. A reliable script for that purpose would have to come from the MTA team, or from some nasty hacker / cheater who has revese enginered the MTA traffic. Regards Stickybit Link to comment
0 MTA Team Blokker_1999 Posted February 1, 2006 MTA Team Share Posted February 1, 2006 No, use the ASE protocol, it's what http://www.game-monitor.com does. Link to comment
0 Brophy Posted February 1, 2006 Share Posted February 1, 2006 Yeah thats what i used, if you know php it should be a problem Link to comment
0 jules Posted March 14, 2006 Share Posted March 14, 2006 Great little script.... But .....is there anyway to switch the the way the log displays as it reads from bottom to top. Be nice to have it read from top to bottom. (Oldest post on top reading down) Link to comment
Question
Stickybit
Link to comment
19 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now