Connecting Tech Pros Worldwide Forums | Help | Site Map

User details

joaoduraes@yahoo.com
Guest
 
Posts: n/a
#1: Feb 8 '08
Hello.

What information can we get from a user using PHP?
I know that javascript can "read" a lot of things, like screen size,
colour depth....and use a few tricks to send that information to the
serrver.

I know that with PHP we can get the user agent of a browser and little
more.
What else can we get with PHP and/or with javascript??


Thanks!!

Rik Wasmus
Guest
 
Posts: n/a
#2: Feb 8 '08

re: User details


On Fri, 08 Feb 2008 22:44:44 +0100, <joaoduraes@yahoo.comwrote:
Quote:
Hello.
>
What information can we get from a user using PHP?
I know that javascript can "read" a lot of things, like screen size,
colour depth....and use a few tricks to send that information to the
serrver.
>
I know that with PHP we can get the user agent of a browser and little
more.
What else can we get with PHP and/or with javascript??
Anything that is in te $_SERVER array, don't trust it though, it's just
headers the clients send on a request.

One of the nicer and usefull once is for instance HTTP_ACCEPT_LANGUAGE,
which will by most modern UA's be filled with the language of the OS by
default, or a user defined value. Way better to decide which language to
show then GeoIP stuff, and with a lot less overhead.
--
Rik Wasmus
Closed Thread