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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.