Re: Re: wierd include_path configuration throwing errors
| From: | Justin Patrin | Date: | Tue, 06 Mar 2007 23:07:40 +0000 |
| Subject: | Re: Re: wierd include_path configuration throwing errors | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26745@lists.php.net to get a copy of this message | ||
On 3/6/07, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:
--- Mark Wiesemann <wiesemann@php.net> wrote: l Burnerheimerton wrote:Whoever put that code on the server incorrectly set up PEAR. You're much better off fixing the server to have correct code (no ini_set(), no changed code at all). If you're unclear on what ini_set() or related settings do check the PHP manual. I assure that no PEAR library code has any ini_set() or set_include_path() calls in it. -- Justin PatrinI 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 I could not agree more. However, the way it is set up, as shown, works on the server. It really baffles me and I hate to go through and start changing code ( ini_set() )when I don't know the full ramifications of those changes. Thanks for your input.