#21540 [Fbk->Opn]: include_path problem
| From: | kjanisz at fr dot pl | Date: | Sun, 12 Jan 2003 12:13:02 +0000 |
| Subject: | #21540 [Fbk->Opn]: include_path problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29816@lists.php.net to get a copy of this message | ||
ID: 21540
User updated by: kjanisz@fr.pl
Reported By: kjanisz@fr.pl
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.3.0
New Comment:
Yes, I have the following line in php.ini
include_path = .:./:/usr/local/src/php-4.1.1/php-4.1.1/pear
Previous Comments:
------------------------------------------------------------------------
[2003-01-10 16:37:59] iliaa@php.net
Do you have include_path specified in your php.ini?
------------------------------------------------------------------------
[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