What all can $_server[] do?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
seeker2921
Forum Contributor
Posts: 120
Joined: Sat Mar 22, 2003 7:10 pm
Location: Wiesbaden Germany
Contact:

What all can $_server[] do?

Post by seeker2921 »

Okay, So I have been looking for a list of what $_server[] can I do, I know that $_server['remote_addr']; returns the client IP and I want to put on my site a list of info about the clients comp, Like browser, ip, os, url referer, ect.. so I went to php.net and searched for it and got nothing so could someone give me a link to the manuel info on this?
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

Never used it much myself but this should put you to sleep at night. ;)

http://au2.php.net/manual/en/reserved.v ... les.server
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

$_SERVER depends on server ;) Create a simple php page:

Code: Select all

var_dump($_SERVER);
to see which elements are set for your server.
seeker2921
Forum Contributor
Posts: 120
Joined: Sat Mar 22, 2003 7:10 pm
Location: Wiesbaden Germany
Contact:

Post by seeker2921 »

Thanks guys..
Post Reply