I’m using PHP 5.3.12 on a Windows system , i am trying to use some of the $_SERVER variables, but the following $_SERVER variables are empty for me
$_SERVER['SERVER_NAME']
$_SERVER['SERVER_PORT']
$_SERVER['REQUEST_URI']
i have set ServerName in the config file, but SERVER_NAME and SERVER_PORT are both empty and i have no idea why that is, how can i set those variables and prevent them from being empty?
I am pretty sure its IIS and have seen this happening before for REQUEST_URI try using