Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetServerVariable: Difference between revisions

From Catglobe Wiki
jrfconvert import
 
Cg_pham (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:HelpBooks]]
[[Category:Network_Functions]]





Revision as of 07:00, 22 March 2011



getServerVariable

Returns the string corresponding to the requested serverVariable.

Syntax

getServerVariable(serverVariable)

Arguments

serverVariable: a number expression. It must be one of 3 pre-defined constants:

  • HTTP_REFERER: Returns a string containing the URL of the page that referred the request to the current page using an <a> tag. If the page is redirected, HTTP_REFERER is empty
  • HTTP_USER_AGENT: Returns a string describing the browser that sent the request.
  • REMOTE_ADDR: Returns the IP address of the remote host making the request (reference: http://www.w3schools.com/asp/coll_servervariables.asp)

Return type

string

Examples

getServerVariable(HTTP_REFERER);

Availability

Version 5.3