Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > include_path issue
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 10th October 02:29
sf
External User
 
Posts: 1
Default include_path issue



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?

Thanks!

- sf
  Reply With Quote


 


2 10th October 02:31
dmagick
External User
 
Posts: 1
Default include_path issue



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/
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666