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

How to make the browser display errors in php

coldplay.xixi
Release: 2023-03-06 11:16:01
Original
2402 people have browsed it

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!

Related labels:
php
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template