Apache Variables


Apache Variables:
These variables are formed in Apache web server. If you launch another web server, there is no guarantee that the same variables will be formed. The functions of these variables are being presented now.

GATEWAY_INTERFACE
It gives information about CGI version which serves uses.
Like CGI/1.0 etc

SERVER_NAME
It includes the name of the server on which script is going to run.

SERVER_SOFTWARE
It includes string which functions in determining the server, in message headers which are sent as a response to demands for server.

SERVER_PROTOCOL
It includes data about information protocol which page is going to use in communication, like ‘HTTP/1.0′

REQUEST_METHOD
It includes information about which method is used for access to the site
Possible methods, ‘GET’, ‘HEAD’, ‘POST’,'PUT’ methods.

QUERY_STRING
It includes query string which is used for access to the site.

DOCUMENT_ROOT
It includes root index info through which active script is going to be performed as defined in server configuration file.

HTTP_ACCEPT
It includes header info of an immediate request.

HTTP_ACCEPT_CHARSET
It includes charset which belongs to an immediate request.

HTTP_ACCEPT_ENCODING
It includes encoding info of an immediate request. ‘gzip’,'zip’ etc.

HTTP_ACCEPT_LANGUAGE
It includes information about language.

HTTP_CONNECTION
It gives information about connection.

HTTP_HOST
It gives information about host which belongs to HTTP connection.

HTTP_REFERER
It gives the address of server page which is given as a reference by web browser.

HTTP_USER_AGENT
It gives information about web browser software which is used to see server default page

REMOTE_ADDR
It includes IP address of remote user who wants to see web page in server.

REMOTE_PORT
It includes information about port in user machine which is used to communicate with web server.

SCRIPT_FILENAME
It includes certain path information of the script which functions actively at that moment.

SERVER_ADMIN
It includes value which is given for SERVER ADM?N in web server configuration.

SERVER_PORT
It includes info about port which is used by web server to communicate in server machine. It is worth 80 for default assignments

SERVER_SIGNATURE
It has a string which includes server version and server name added to pages created by server.

PATH_TRANSLATED
It includes information which determines path of the active script as being converted to file system used.

SCRIPT_NAME
It includes path information of the active script. It is valuable information for the pages which give reference to themselves.

REQUEST_URI
It includes URI value which is given to access this page, like ‘/index.html’.

You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.