Jump to content

how to configure php to show errors


phplearner2008

Recommended Posts

Should I include

error_reporting(E_ALL); in php.ini file? Is that all?

You also need to make sure display_errors is enabled too.

 

error_reporting and display_errors can be set both within the php.ini and/or during runtime (within your PHP script)

I enabled this for the first time today after manually setting up apache (that was fun.) One caveat, if you use control-f to find display_errors it's the second result that you want not the first. The first one will be commented out with a semicolon preceding it, the latter one is on line 392(?) and is not commented.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.