Hi. I would like to know if PHP has an equal to PERL's $ENV{DOCUMENT_ROOT} command. In my php file, I call a file to write to and I use the full system path to the file.
I would like to know if there is a way in PHP where I can just write a command like $ENV{DOCUMENT_ROOT}, then just add the directory and file, like below:
PHP_COMMAND/templates/default.txt
Where PHP_COMMAND would be a command that works to list the system path, just like $ENV{DOCUMENT_ROOT} does for PERL.
Any help will be appreciated. Not a biggie, but if changing hosts, it would be nice to have to edit as little as possible.
Bryan