#21540 [Opn->Fbk]: include_path problem
| From: | iliaa@php.net | Date: | Fri, 10 Jan 2003 22:38:00 +0000 |
| Subject: | #21540 [Opn->Fbk]: include_path problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29727@lists.php.net to get a copy of this message | ||
ID: 21540
Updated by: iliaa@php.net
Reported By: kjanisz@fr.pl
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.3.0
New Comment:
Do you have include_path specified in your php.ini?
Previous Comments:
------------------------------------------------------------------------
[2003-01-10 01:53:50] kjanisz@fr.pl
I'm running Apache 1.3.27. I tried include_path both in httpd.conf and
.htaccess. Problem existed in both cases.
------------------------------------------------------------------------
[2003-01-09 19:42:16] iliaa@php.net
Which Apache are you using and where are you specifying the
include_path, httpd.conf (virtual host) or .htaccess?
------------------------------------------------------------------------
[2003-01-09 03:37:10] kjanisz@fr.pl
It seems that include_path is not working correctly. When I try to
include Mail.php from PEAR I get
Warning: sendmail() [function.sendmail]: Failed opening 'Mail.php' for
inclusion (include_path='./:/usr/local/src/php-4.3/pear;') in
/usr/local/apache/www/htdocs/aircargo.idstudio.pl/funcs.php on line 6
Mail.php IS in directory /usr/local/src/php-4.3/pear
My config:
php_value include_path ./:/usr/local/src/php-4.3/pear
Look at the error - there is ; at the end of include_path, but it is
not in my server configuration. When I added another path at the end:
php_value include_path ./:/usr/local/src/php-4.3/pear:.
script started to work. I think that there is an typo somewhere in the
code.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21540&edit=1