By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,664 Members | 1,643 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,664 IT Pros & Developers. It's quick & easy.

User details

P: n/a
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!!
Feb 8 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 08 Feb 2008 22:44:44 +0100, <jo********@yahoo.comwrote:
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
Feb 8 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.