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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
basementjack
Forum Newbie
Posts: 2
Joined: Tue Feb 02, 2010 9:28 pm

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

Post 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
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

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

Post 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?
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply