Home  >  Article  >  Backend Development  >  How to make the browser display errors in php

How to make the browser display errors in php

coldplay.xixi
coldplay.xixiOriginal
2020-09-30 15:11:022282browse

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");].

How to make the browser display errors in php

#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 messages

This only displays error messages in php and js You can use Firefox's firebug to view it

If 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn