Jump to content

To clear up some confusion about MTASG


Recommended Posts

I am the author of MTASG, and I see lots of people put the mtasg.php on the web. The mtasg.php is intended to run from the command line, with PHP's CLI interface, like this:

wartech@blackedge:~/mta$ php -q mtasg.php

MTASG 0.2b - Multi Theft Auto Statistics Generator by Wartech

Parsing logfile: mtaserver.log

Done! 1078 lines parsed in 0 seconds

Saving statsfile: html/index.php

Done! html/index.php saved


And then the file the script generates should be saved in the web directory. I've added the mtasg.php to the crontab so it updates every 10 minutes, like this:

*/10 * * * * /home/admins/wartech/mta/mtasg.php >/dev/null 2>&1

MTASG is designed to work on Linux, but it should work on Windows too. I'll maybe write a few tutorials later today.


Link to comment
  • 1 month later...
  • 1 month later...
  • 10 months later...
  • 2 months later...
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...