document root variable or function
| From: | webmaster at tececo dot com | Date: | Fri, 17 May 2002 12:56:40 +0000 |
| Subject: | document root variable or function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98063@lists.php.net to get a copy of this message | ||
Is there a variable in PHP which will show the directory of the document root? I have done a few
searches and before I go looking harder I thought I'd ask. My problem is that I am using both
windows, IIS and linux, Apache. I tried a few things like $document_root which didn't seem to
work but I didn't try very hard :)
Below is an example of what I want to do:
include "(magic variable or function)/$file;
JJ Harrison
webmaster@tececo.com
www.tececo.com
P.S. Can anyone suggest a good text editor for PHP and html?