changing paths to be server root relative
| From: | Unknown Sender | Date: | Mon, 24 Jul 2000 03:56:19 +0000 |
| Subject: | changing paths to be server root relative | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-7814@lists.php.net to get a copy of this message | ||
I have written some code that will be living in both the root of the
website, but also in subdirectories on the website (/, /events, and
/about). I have all my php include files in /include. I would like to
be able to copy the files from / to /events and /about, but all the
relative paths are messed up. Is there some function I can call to turn
all the paths (for the include files) into server root relative:
/usr/local/apache/htdocs/include rather then simply /include? mod_perl
does have this ability, I am assuming that PHP has this ability.
Sam
P.S. I am using php3, not php4.