neuromancer
neuromancer

Reputation: 55559

How to use PHP to get information about the user

What kinds of information can PHP get about users? I would like to make a web page that shows information about whoever goes to it, like their IP address.

Upvotes: 2

Views: 918

Answers (3)

A.P.
A.P.

Reputation: 305

well, run
phpinfo(); to find all the variables that may be interesting.

to get more, you should think about using cookies to see if the user is here for the first time. And use javascript to get some other stuff, like screen resolution, etc.

Upvotes: 2

Jim Rubenstein
Jim Rubenstein

Reputation: 6930

IP Address, User-Agent, Geo-Location based on IP Address, and that's about it without cookies and other data from other sites or properties.

Upvotes: 1

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799200

You can get anything in $_SERVER.

Upvotes: 5

Related Questions