That was a really cool idea that you had. Good luck on the update.
making the program is the easy part, finding a place to run it stable is the tricky part
I would just run it at multiple locations using the game name as a unique serial to prevent multiple instances of the same map being recorded in your database.
Yay for Updates!
I had to follow links through four threads to find the link to the script, but neat. I suppose you used cURL/fsockopen and followed the Battle.net protocol to search/add games. Sort of like a web-spider?
I remember when I saw it you had some generated graphs. Interesting.
Is the script supposed to be working right now? Whenever I open it open it up it just says "error, cannot load page."
RexyRex : I got the feeling that he created a program that gathers the information and feeds it to a PHP script where it then gets processed/displayed as a stat. I might be wrong but I just thought that because he said 'code' rather than 'script' but then again he also said he needs a way to run it in the backround which doesn't sound like a program. If it was made in pure php wouldn't that require an infinite loop or constant refreshing? both of which would rape his server?
FritFrat : since he hasn't replied with any update news I am assuming it is not functional at the moment.
PHP can sleep() until it needs to do something.
That, or it can be run periodically.
Would it make it any faster (to load and/or to run) to see if the map is already in there; if it is just add 1 to a value for it, and if its not add it to the list?
(This is assuming it just adds the name to a list, and calculates it when the page is loading)
No, I don't think it would affect the efficiency if a map is already in the database because to know if the map is in the database you need to get the game list anyways the only difference being that if the map already exists you would use a database 'update' query rather than a 'create' query.