Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get User Server Info 1

Status
Not open for further replies.

DaveShaw

Programmer
Jul 9, 2001
35
GB
I am writing a PHP site which wil have many functions, one of which will be to get many of the users personal computer details, I have seen this in done in ASP and SHTML but not in php and I was wonderig if its possible.
The Site takes you to one example of what I am after.
So is

If anyone know how to do this in php i will be very grateful!
Thanx Dave Shaw
 
You are going to have to use environment variables, and the function, getenv().

For example, if you wanted to find the users IP address, you could do something like this:

[tt]
$ip = getenv('REMOTE_ADDR');
[/tt]

You might want to go to and read more about environment variables in the PHP manual.

Hope this helps.
-Vic vic cherubini
krs-one@cnunited.com
 
Also, you can use the function phpinfo() to get all of the information you need about your server, but, this will also show you every enivronment variable you have to use.

I don't believe there is one to get the users host though.

Hope this helps.

-Vic vic cherubini
krs-one@cnunited.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top