Tag Archives: $_SERVER elements in php

$_SERVER in php

$_SERVER is superglobal array that holds the following information 1. $_SERVER[‘PHP_SELF’]—> it shows the filename of the currently executing script. 2.$_SERVER[‘GATEWAY_INTERFACE’]—> what revision of the CGI Specification of the server for exampke ‘CGI1.1’ 3.$_SERVER[‘SERVER_ADDR’]–> IP address of the server underwhich the current script is executing 4.$_SERVER[‘SERVER_NAME’]–> The name of the server host under which theā€¦ Read More »