Tag php server local

PHP – $_SERVER

$_SERVER $_SERVER is a PHP super global variable which holds information about headers, paths, and script locations. The example below shows how to use some of the elements in $_SERVER: Example echo $_SERVER[‘PHP_SELF’]; echo $_SERVER[‘SERVER_NAME’]; echo $_SERVER[‘HTTP_HOST’]; echo $_SERVER[‘HTTP_REFERER’]; echo…