Re: Re: wierd include_path configuration throwing errors

From: Date: Tue, 06 Mar 2007 21:36:23 +0000
Subject: Re: Re: wierd include_path configuration throwing errors
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26744@lists.php.net to get a copy of this message
--- Mark Wiesemann <wiesemann@php.net> wrote: > 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 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. ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.

« previous php.pear.general (#26744) next »