Path: csiph.com!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: can't modify include path Date: Thu, 21 Jun 2012 09:37:30 +0200 Organization: A noiseless patient Spider Lines: 38 Message-ID: <4FE2CF3A.7010400@arnowelzel.de> References: <2df59c0e-ddb9-4088-9b7f-d739dac4bcd5@googlegroups.com> <1c5ef5ec-c599-4e8f-b76c-f0c807acdf3f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="0yczmRcmY8aWSlP2HmsIaw"; logging-data="20013"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jwu4pgMbv8U/0FZHaMthSVM1kbKc9URE=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <1c5ef5ec-c599-4e8f-b76c-f0c807acdf3f@googlegroups.com> Cancel-Lock: sha1:LjzmULfTIZccqBq/RRUrmpuFCQs= Xref: csiph.com comp.lang.php:6397 jans, 21.06.2012 03:37: > On Wednesday, June 20, 2012 2:16:34 PM UTC-7, Jerry Stuckle wrote: [...] >> >> See phpinfo() - it will tell you which config (if any) it's using, i.e. >> >> > phpinfo(); >> ?> [...] > I tried the php --ini and it told me the right one is in /etc Propably it told you, it WOULD load /etc/php.ini, if it was there. > The only one in that directory is php.ini.default and I added the include_path to that ini and it is not showing up in php.info. Make a copy of php.ini.default and rename to php.ini. > the command said > loaded ini file (/etc) > additional parsed ini files(none) > additional ini files (none) > > I restarted the web server apache. Just for fun I restarted my server. I still have .: for my include path. The php.ini.default include_path is: > include_path = ".:/usr/local/php5/include:/users/jr/pear/share/pear" This include path has nothing to do with the location php.ini at all! It is the path where PHP tries to locate files which you try to include within your scripts with include() or require(). -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de