RE: [PHP-DB] Storing browser stats
| From: | Mignon Hunter | Date: | Thu, 06 Mar 2003 15:37:36 +0000 |
| Subject: | RE: [PHP-DB] Storing browser stats | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26122@lists.php.net to get a copy of this message | ||
This will work except for those browsers with javascript turned off -
I've seen php examples of how to do this in books, (capture the user
agent anyway, then once captured - just plop it in the db) there should
be some on line somewhere.
Also if you have access to the web server, I think most web server stat
programs allow for this. The one we use is http://www.analog.cx/ and we
have it configured to capture user agents.
<mignon>
On Thu, 2003-03-06 at 08:58, Matthew Moldvan wrote:
> I would say use JavaScript to gather the information (screen resolution,
> browser info, etc) and then store it in a MySQL or similar DB using PHP. Do
> a search for JavaScript and PHP variables to find out how (it involves
> populating hidden fields with JS and passing to PHP Scripts AFAIK) ... that
> should get you started, at least. :)
>
> Good luck, and for curiosities sake let me know how the project turns out.
>
> Regards,
> Matthew Moldvan
>
> ---------------------------------------
> System Administrator
> Trilogy International, Inc
> http://www.trilogyintl.com/ecommerce/
> ---------------------------------------
>
>
> -----Original Message-----
> From: Bruce Levick [mailto:brucel@ispye.com]
> Sent: Wednesday, March 05, 2003 6:26 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Storing browser stats
>
>
> Is there a method for storing each users browser stats within a database
> table.
>
> So everytime someone visits the browser info is gathered and stored as a
> unique row in the 'browser' table in the database.
>
> Any advice??
>
> Cheers
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Mignon Hunter
Web Developer
Toshiba International
713.466.0277 x 3461