Re: include_path issue
| From: | Chris | Date: | Wed, 08 Aug 2007 22:01:01 +0000 |
| Subject: | Re: include_path issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260457@lists.php.net to get a copy of this message | ||
Steve Finkelstein wrote:
Hi all, I have rudimentary application which has an index.php that looks like this:Looks like it since the include path is completely different. Before require_once 'DB/DataObject.php'; try echo ini_get('include_path') . '<br/>'; and see what it is at that point. -- Postgresql & php tutorials http://www.designmagick.com/ini_set( 'display_errors', true );require_once 'include/Model.php';Immediately after that include/Model.php is processed, Model.php consists of this: require_once 'DB/DataObject.php'; This causes Zend Studio IDE to spit out the following: Compile Error: /Applications/MAMP/htdocs/meduser/include/Model.php line 3 - require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'DB/DataObject.php' (include_path='/Applications/Zend/ZendStudio-5.5.0 /bin/ZendFramework/library') I'm currently -not- listing an include_path of /Applications/Zend/ZendStudio-5.5.0/bin/ZendFramework/library anywhere in the scripts. phpinfo() reports the following as my include_path, which is correct: .:/Applications/MAMP/bin/php5/lib/php If I create test.php and pop in require_once 'DB/DataObject.php', all works well. Does anyone know if this can be a Zend IDE induced error? Any suggestions?