note 14701 added to function.include.php
| From: | rob at robval dot com | Date: | Fri, 10 Aug 2001 10:46:25 +0000 |
| Subject: | note 14701 added to function.include.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16535@lists.php.net to get a copy of this message | ||
Hello:
I have been struggling with the following problem for too may weeks:
Warning: Failed opening '/var/www/php/index.php' for inclusion (include_path='')
in Unknown on line 0
and
Warning: Failed opening '/myhome/config.php' for inclusion (include_path='') in
/var/www/php/myhome/index.php on line 3
After lots of try and error, I did find a workaround on several applications on
my Windows system by setting the include_path line in php.ini to blank and
then using: include($DOCUMENT_ROOT)."/myhome/config.php";
However, on my Linux system using PHP 4.0.4, I have tried and tried to find a
solution to this unbelievably unstable include()/include_path combo.
Any help will be appreciated. Thanks.
http://www.php.net/manual/en/function.include.php