RPeraltaJr
3/28/2017 - 2:48 PM

PHP Display Errors

PHP Display Errors

<?php

  ini_set('display_errors', 1);
  ini_set('display_startup_errors', 1);
  error_reporting(E_ALL);
  
  // error_reporting(0); // turn off errors
  
?>
However, this doesn't make PHP to show parse errors - the only way to show those errors is to modify your php.ini with this line:

display_errors = on