wierd include_path configuration throwing errors

From: Date: Tue, 06 Mar 2007 19:47:31 +0000
Subject: wierd include_path configuration throwing errors
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26742@lists.php.net to get a copy of this message
All of this works fine on the server but I copied the scripts down to my local server to make and test changes. 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/ ... In one of the first lines of /internal_user/index.php, is the following line: require_once '../HTML/QuickForm.php'; When I run that file I get this, I get the following error: Warning: main(HTML/Common.php) [function.main]: failed to open stream: No such file or directory in D:\docs\websites\client\data\HTML\QuickForm.php on line 24 Fatal error: main() [function.require]: Failed opening required 'HTML/Common.php' (include_path='.:..') in D:\docs\websites\client\data\HTML\QuickForm.php on line 24 The first line in Quickform.php is: ini_set('include_path','.:..'); Now I have pear set up correctly on my system so I commented that line out and tried it again, then it throws this error: Fatal error: Cannot redeclare class pear in D:\docs\websites\client\data\HTML\PEAR.php on line 73 Line 73 is where the PEAR class is first defined. The setting in my php.ini is: include_path=".;D:\pfiles\php\pear" and all my other php scripts work fine. Any ideas how to overcome this easily? Many thanks! ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367

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