We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

coggla on 01/20/08


Tagged


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

arcturus


Environment Variables


Published in: PHP 


  1. $_SERVER["SCRIPT_FILENAME"] // server path to file
  2. $_SERVER["SCRIPT_NAME"] // path to file from web root
  3. $_SERVER["REMOTE_ADDR"] // user's IP address
  4. $_SERVER["QUERY_STRING"] // query string in URL
  5. $_SERVER["DOCUMENT_ROOT"] // server path to web root
  6. $_SERVER["HTTP_HOST"]; // server host name (domain)

Report this snippet 

You need to login to post a comment.