Server Player Stats via TC API, MySQL, PHP and CanvasJS - Printable Version +- [TC] Gaming Forums (https://forum.city-driving.co.uk) +-- Forum: General Information (/forumdisplay.php?fid=1) +--- Forum: General Discussions (/forumdisplay.php?fid=4) +---- Forum: Developer Forum (/forumdisplay.php?fid=221) +---- Thread: Server Player Stats via TC API, MySQL, PHP and CanvasJS (/showthread.php?tid=32375) |
Server Player Stats via TC API, MySQL, PHP and CanvasJS - Kyle - 2020-02-15 20:45 Hey all, So I've been working on a little something recently. This records the player count every minute (was 15 minutes before, hence the recent change in resolution on the graph) via the API and logs it to a database. This is then pulled back from the database and represented on a graph when the user visits the page. Example: Visit it here. It's a very simple use of the API, however in returns generates an interesting graph. Just thought I'd show it off - Kyle |