jcadima
1/18/2018 - 4:32 PM

PHP Server Variables


URL: http://testphp.test/

$_SERVER['HTTP_HOST']         	testphp.test
$_SERVER['REDIRECT_STATUS']   	200
$_SERVER['SERVER_NAME']	        testphp.test
$_SERVER['SERVER_PORT']	        80
$_SERVER['SERVER_ADDR']	        192.168.10.10
$_SERVER['REMOTE_PORT']       	49340
$_SERVER['REMOTE_ADDR']	        192.168.10.1
$_SERVER['SERVER_SOFTWARE']    	nginx/1.13.3
$_SERVER['GATEWAY_INTERFACE']	  CGI/1.1
$_SERVER['SERVER_PROTOCOL']   	HTTP/1.1
$_SERVER['DOCUMENT_ROOT']	     /home/vagrant/sites/testphp
$_SERVER['DOCUMENT_URI']	     /index.php
$_SERVER['REQUEST_URI']	       /
$_SERVER['SCRIPT_NAME']	       /index.php
$_SERVER['SCRIPT_FILENAME']  	 /home/vagrant/sites/testphp/index.php