Jump to content

[SOLVED] simple server variable Q


otuatail

Recommended Posts

Here's everything in the $_SERVER array... (afaik).

 

$_SERVER['DOCUMENT_ROOT']

$_SERVER['GATEWAY_INTERFACE']

$_SERVER['HTTP_ACCEPT']

$_SERVER['HTTP_ACCEPT_CHARSET']

$_SERVER['HTTP_ACCEPT_ENCODING']

$_SERVER['HTTP_ACCEPT_LANGUAGE']

$_SERVER['HTTP_HOST']

$_SERVER['HTTP_REFERER']

$_SERVER['HTTP_USER_AGENT']

$_SERVER['PATH_TRANSLATED']

$_SERVER['PHP_SELF']

$_SERVER['QUERY_STRING']

$_SERVER['REMOTE_ADDR']

$_SERVER['REMOTE_PORT']

$_SERVER['REQUEST_METHOD']

$_SERVER['REQUEST_URI']

$_SERVER['SCRIPT_FILENAME']

$_SERVER['SCRIPT_NAME']

$_SERVER['SERVER_ADMIN']

$_SERVER['SERVER_NAME']

$_SERVER['SERVER_PORT']

$_SERVER['SERVER_PROTOCOL']

$_SERVER['SERVER_SIGNATURE']

$_SERVER['SERVER_SOFTWARE']

 

It's obviously not going to be a lot of these, but you could try SCRIPT_FILENAME, SCRIPT_NAME, REQUEST_URI, DOCUMENT_ROOT and maybe one or two others...

 

Hopefully someone will come along and spare you going through all of those... sorry I couldn't be much help. :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.