Enable PHP error reporting for a page.

This code is really handy although not that easy to find on google. It lets you enable errors on a php page without having to mess around in the php.ini file.
ini_set(“display_errors”, “1”);


One thought on “Enable PHP error reporting for a page.

  1. You can’t put quotes around the internal define E_ALL or display_errors, nor is it necessary to put them around the 1.

Comments are closed.