DataRater Posted June 24, 2008 Share Posted June 24, 2008 According to my phphinfo() include_path = .:/usr/share/php:/usr/share/pear but in my php.ini the include_path is commented out. ;include_path = ".:/usr/share/php" How is the include set? Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 24, 2008 Share Posted June 24, 2008 Either the php.ini that you are looking at is not the one that php is using or the value is being set somewhere else, such as in httpd.conf, a .htaccess, or a local php.ini Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/#findComment-573338 Share on other sites More sharing options...
DataRater Posted June 24, 2008 Author Share Posted June 24, 2008 I've looked in all of these and yes it is the correct php.ini i.e. /etc/php5/apache2/php.ini Configuration File (php.ini) Path /etc/php5/apache2 Loaded Configuration File /etc/php5/apache2/php.ini Scan this dir for additional .ini files /etc/php5/apache2/conf.d additional .ini files parsed /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini, /etc/php5/apache2/conf.d/xsl.ini It is mysterious... Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/#findComment-573360 Share on other sites More sharing options...
PFMaBiSmAd Posted June 24, 2008 Share Posted June 24, 2008 Search php.ini for "include_path". The commented-out one is just an example. The real one is later in the file. Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/#findComment-573366 Share on other sites More sharing options...
DataRater Posted June 24, 2008 Author Share Posted June 24, 2008 I've searched through the file by editing in vi and using searching by doing a /include_path and all include_path statements are commented out with a ';' Wierd!!! Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/#findComment-573374 Share on other sites More sharing options...
wildteen88 Posted June 24, 2008 Share Posted June 24, 2008 On some settings PHP will automatically configure itself, if no configuration for a particular setting is set within the php.ini. PHP will have built in default settings. It will also inherit some settings from the system. Whatever you set in the php.ini will override the default setting. Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/#findComment-573384 Share on other sites More sharing options...
DataRater Posted June 24, 2008 Author Share Posted June 24, 2008 OK. I've modified my phph.ini with the current settings and added my bit on the end and it seems to be working. I don't like the idea of inherited defaults when I don't know where they were inherited from but I guess we need to live with it. Many thanks, Steve Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/#findComment-573400 Share on other sites More sharing options...
trq Posted June 24, 2008 Share Posted June 24, 2008 Check the ./configure line in your phpinfo() output, I'm not sure but maybe you can set a default include_path at compile time? As for tracking down include_path, you could search all files on the system (might take a while). sudo grep -Horn include_path / Quote Link to comment https://forums.phpfreaks.com/topic/111702-include_path/#findComment-573401 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.