Jump to content

php.ini include_path question


jmurch

Recommended Posts

I have a site with the document root at /var/www/html.  The also have an installation of OSCommerce located at /var/www/html/store.  I like to set the default include path in php.ini for ease and clarity in coding since the site above the store has many directory levels.

 

When I try to set the default include_path parameter in php.ini to /var/www/html/includes:/var/www/html/store/includes the store crashes. 

 

As a work around I can just code all of the includes to the document root

include(/includes/whatever.php).  This works fine for html files but not for php files even though they are in the same directory.

 

Has anyone run into this or seen this behavior before? I really have two problems that are unrelated I'm sure.

 

TIA

Link to comment
https://forums.phpfreaks.com/topic/124312-phpini-include_path-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.