I am programming a tracking script for my web site and I'd like to catch the refferrer, IP address, etc. Those are just two examples of information that I can get. Is there a page that lists all these variables that can be caught?
Need List of Server Variables
Read the PHP Manual on Predefined Variables
laserlight wrote:Read the PHP Manual on Predefined Variables
Thank you. I didn't know they are called Predefined Variables, so I didn't know what to search for. (I guess that's why I'm still a newbie! )
Also note that things such as referrer, user agent, etc. are simply derived from the HTTP headers sent by the client - they can easily be falsified or even filtered out completely by firewalls, proxies, software, etc.
If you want the server variables available, just do print_r($_SERVER);