These variables are created by the Apache webserver. If you are running another webserver, there is no guarantee that it will provide the same variables; it may omit some, or provide others not listed here. That said, a large number of these variables are accounted for in the CGI 1.1 specification, so you should be able to expect those.
Use this to see if the variable is set:
- Code: Select all
You'll get a list of variables and DOCUMENT_ROOT should be there.