Re: wierd include_path configuration throwing errors
| From: | Mark Wiesemann | Date: | Tue, 06 Mar 2007 20:30:55 +0000 |
| Subject: | Re: wierd include_path configuration throwing errors | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26743@lists.php.net to get a copy of this message | ||
l Burnerheimerton wrote:
> I am assuming duties for a web site that has a
> directory structure like:
>
> ...
> /internal_user/index.php
> /external_user/
> /HTML/Common.php
> /HTML/Pear.php
> /HTML/Quickform.php
> /HTML/Quickform/
> ...
What is /HTML/Pear.php? PEAR's official PEAR.php belongs one directory
"higher".
> In one of the first lines of /internal_user/index.php,
> is the following line:
>
> require_once '../HTML/QuickForm.php';
This should be:
require_once 'HTML/QuickForm.php';
QF will not find its required files otherwise. Of course, you have to
correct the include_path before this change works.
> The first line in Quickform.php is:
> ini_set('include_path','.:..');
Don't edit PEAR files, after an update your change will get lost.
> The setting in my php.ini is:
> include_path=".;D:\pfiles\php\pear"
This makes sense, but the ini_set() call looks *very* wrong.
Regards,
Mark
--
http://www.markwiesemann.eu