Saturday, October 24, 2009

Where should the each part be in the PsychoStats Installtion Scenario

The Game can be running in any PC any where in the world, but enable logs and take the logs from it and Put it in a place where the Stats.pl can access it. So, Logs created from the game console are the sources for the PsychoStats. This PC must have the game installed.

Where the Stats.pl should be? Any PC anywhere in the where in the world, but it should be able to access the database being used by PHP application and also the Logs source by FTP or by Stream or by normal access in same PC. This PC must have the Perl installed with DBD::mysql addon and DBI addons

Where should the PHP Application should be? Any PC anywhere in the world, but the database of this should be accessible remotely to the stats.pl. This PC should have the Webserver (Apache) with PHP and Database (Mysql).

Also, you must give the location of the Logs in the PHP config. Best method is to put the Logs in some folder inside the PHP installation. Like if the stats.example.com is the website, stats.example.com/logs/ can be the Logs folder for easy set up.

Now when you configure the Stats.pl perl script and run it. It will remotely connect to the database of the PHP installation and checks where the Log files are, makes data from it. Sends the data into the same database it has connected to but puts in other tables. Now this data is shown by the PHP package in the Upload directory of PsychoStats package.

No comments:

Post a Comment