NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
include path


Joined: 19 May 2009
Posts: 1
Reply with quote
Hi.

I just installed phpEd (coming from VS.php, but I want to change), so my question might be a newbie question. But I browsed the forum and couldn't find an answer.

How do you tell phpEd what are your include path (php's include_path value).
My include_path are set in Apache's vhost config (via "php_value"), maybe that's why dbg-wizard couldn't pick it up?

So, to be clear:
- I have my document root in /var/www/dev/public_html
- I have an include folder in /var/www/dev/include
- in my vhose config, I have a line saying "php_value include_path /var/www/dev/include"
- My project root is /var/www/dev, with the mapping of project/public_html going to the url

But everytime in my php code I have an include, it tries to find the file in the source's file folder, instead of the include folder.
(ie, if I have /public_html/foo.php with a line inside saying include 'class/bar.php', it will try to include the file /public_html/class/bar.php whereas my remote server correctly loads /include/class/bar.php).
Needless to say that messes up all the autocompletion, intellisense, class browser etc.

So how do I tell phpEd that there is an include path?

Thanks.
View user's profileFind all posts by atomixprodSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
include_path is a php setting that can be changed in php.ini. Check phpinfo() to see where your php loads php.ini from.

Regarding intellisense, it does not use any of the php settings in php.ini. It can not be affected by them.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
include path
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic