Posted By

fugue on 04/04/07


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
hudge


$_SERVER Keys


 / Published in: PHP
 

  1. Values commonly available using $_SERVER[], with example values:
  2.  
  3. HTTP_HOST = www.mysite.com
  4. HTTP_USER_AGENT = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3)
  5. HTTP_ACCEPT = text/xml,application/xml,application/xhtml+xml,text/html
  6. HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5
  7. HTTP_ACCEPT_ENCODING = gzip,deflate
  8. HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q=0.7
  9. HTTP_KEEP_ALIVE = 300
  10. HTTP_CONNECTION = keep-alive
  11. SERVER_NAME = www.mysite.com
  12. SERVER_ADDR = 192.168.0.1
  13. SERVER_PORT = 80
  14. REMOTE_HOST = v60.artcom.be
  15. REMOTE_ADDR = 127.0.0.1
  16. DOCUMENT_ROOT = /var/web/mysite/html
  17. SERVER_ADMIN = root@localhost
  18. SCRIPT_FILENAME = /var/web/mysite/html/index.htm
  19. REMOTE_PORT = 39254
  20. GATEWAY_INTERFACE = CGI/1.1
  21. SERVER_PROTOCOL = HTTP/1.1
  22. REQUEST_METHOD = GET
  23. QUERY_STRING =
  24. REQUEST_URI = /index.htm
  25. SCRIPT_NAME = /index.htm
  26. PHP_SELF = /index.htm
  27. PATH_TRANSLATED = /var/web/mysite/html/index.htm

Report this snippet  

You need to login to post a comment.