Home > Article > Backend Development > How to make the browser display errors in php
php method to make the browser display errors: 1. Change the value of [display_errors] in [php.ini] to On; 2. Add [ini_set("display_errors", " at the top of the php code page On");].
#php method to let the browser display errors:
Change the value of display_errors in php.ini to On ;
or
Add
ini_set("display_errors", "On");
error_reporting(E_ALL);## to the top of the php code page
#ini_set("display_errors", "On"); error_reporting(E_ALL); //Display all error messagesThis only displays error messages in php and js You can use Firefox's firebug to view itIf you want to learn more about programming, please pay attentionphp training Column!
The above is the detailed content of How to make the browser display errors in php. For more information, please follow other related articles on the PHP Chinese website!