Page 1 of 1

Not getting PHP errors on command line - how to fix?

Posted: Tue Feb 02, 2010 9:32 pm
by basementjack
I am writing some maintenance scripts that will run from the command line.
I don't get any errors in the stdout, even where some exist (for example, if I forget a ; )
How do I enable this?

I've set error_reporting and display_errors in the php.ini with no luck!

- Jack

Re: Not getting PHP errors on command line - how to fix?

Posted: Wed Feb 03, 2010 2:16 am
by VladSun
Is it the CLI php.ini you have modified? Maybe you've edited the wrong php.ini - e.g. the "Apache" one.
also, what do you mean by "stdout" - do you have any error messages in stderr?