On Sun, 23 Feb 2003 10:30:27 -0600, you wrote: >1. Have the counter dump visitor info to a text file, then run a cron job on >that nightly to process the data and perform a full analysis.
Consider what will happen when two people hit the counter at exactly the same time. You'll have to code to deal with that. (But if you're going to process your counter data nightly, why not just lift it from the access.log?) >2. Have the counter dump the visitor info into a DB (probably MySQL), then >process the data whenever the administrator wants to view his stats. Databases are designed to deal with concurrent access. All other things being equal, go with this one. Just a table with one number in it, incremented with an UPDATE statement. Simple. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php