RE: Storing browser stats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is some information you can from the browser, and some you
cannot. Check out
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
for stuff the server is/can be aware of. Beyond that info, you'd have
to use something client side, like JavaScript. For those users that
have it turned off, you're SOL.


--- Mignon Hunter <hunter@tic.toshiba.com> wrote:
> 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:  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
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing.
***************************************

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux