note 15988 deleted from function.include by spic
| From: | spic@php.net | Date: | Wed, 28 Aug 2002 08:03:36 +0000 |
| Subject: | note 15988 deleted from function.include by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35857@lists.php.net to get a copy of this message | ||
Hi,
I ran into this while trying to include files from anywhere in my website.
At work when I used $DOCUMENT_ROOT the whole thing worked, but when I uploaded the entire site
$DOCUMENT_ROOT was returning a path which used in the include returned another.
This works for me under Win98/Apache1.3.20/PHP4.0.6
**********cut here*************
$home = realpath("./");
$path_to_file = $home . '/path/to/file/in/tree/file.php';
**********cut here*************
Good luck !