Re: CLI not obeying php.ini

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-02-05 at 15:45 -0600, Philip Thompson wrote:
> In my php.ini, I have
> 
> error_reporting = E_ALL & ~E_NOTICE
> 
> When I run a script from the command line, I get a lot of notices....  
> even when I said I don't want them. Also, in my script, I specified  
> error_reporting(E_ERROR) in attempts to explicitly tell it what I  
> want. It doesn't work either.
> 
> Why am I still getting notices?! BTW, I don't receive notices via a  
> web browser, just CLI.
> 
> I double-checked to see what INI file was loaded and it's the one I  
> expected to see:
> 
> [pthompson@pthompson scripts]$ php --ini
> Configuration File (php.ini) Path: /etc
> Loaded Configuration File:         /etc/php.ini
> 
> Thoughts on what's happening would be awesome! Thanks in advance.
> 
> ~Philip
> 
Depending on what distro (I'm assuming Linux, who would run PHP on
anything else? ;) ) you may have a separate php.ini for the CLI. I
believe SUSE does this, and it could well be that other distros use a
similar model.

If you are running SUSE, the config files should be in /etc/php5/


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux