Re: include_path issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steve Finkelstein wrote:
Hi all,

I have rudimentary application which has an index.php that looks like this:

        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?

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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux