server variables as in $_SERVER[] are very helpful in building scripts which run on different servers.
instead of hardcoding variables these might do the trick

this snippet will produce a list of all available server variables

copy the code of information / server variables

click here to select all the code