printing errors to console

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am running a php script in Windows console. But it doesn't display
any errors. I can see them only in the file, set in php.ini:


What parameter should I change in php.ini so they would be displayed
in console?

Re: printing errors to console

On 06/15/2010 03:11 PM, Ivanov Dmitriy wrote:
Quoted text here. Click to load it

The directive is called display_errors.

Re: printing errors to console

You can use the following in your php code:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

Site Timeline