Tech Stuff

Tech Stuff
The PHP Pre-defined Variable “$_SERVER” is an array containg a lot of techical information, such as headers, paths, and script locations. E.g.:
<?php
echo $_SERVER[‘HTTP_USER_AGENT’];
?>
will contain:
Mozilla/5.0 (iPad; CPU OS 9_2_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13D15 Safari/601.1
And…
<?php
echo $_SERVER[‘SERVER_ADDR’];
?>
will display:
198.46.82.194
For more information about “$_SERVER” see:
http://www.php.net/manual/en/reserved.variables.server.php