Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Bot Development >> Maintaining a mirror of the  archive
(Message started by: IdahoEv on May 3rd, 2006, 9:24pm)

Title: Maintaining a mirror of the  archive
Post by IdahoEv on May 3rd, 2006, 9:24pm
I've got a nice spot of PHP code I use to maintain my duplicate of the games database.   I'm happy to share it if anyone is interested.  Just set up the DB, drop the code in a daily cron job, and you're set.  

My version updates to a MySQL DB and doesn't retain the "Events" column, but it would be pretty easy to modify to change either of those.  I wrote it to actually parse the results of the update query and insert them manually, instead of just using mysqlimport, so it would be easierto customize the code do processing and/or conversion at import time if necessary.


Title: Re: Maintaining a mirror of the  archive
Post by BlackKnight on May 28th, 2006, 1:03am
Could you please send me the code.
Maybe I could make use of some of it for the game viewer.

Thanks! :)



Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.