Environment Variables

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.