Skip to content

Instantly share code, notes, and snippets.

@sl4v
Created June 15, 2016 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sl4v/039fb628346f263a2f9163fcde3289b4 to your computer and use it in GitHub Desktop.
Save sl4v/039fb628346f263a2f9163fcde3289b4 to your computer and use it in GitHub Desktop.

How to enable displaying errors in PHP

In script:

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

In php.ini: display_errors = on

Restart web server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment