What should I do if the content of the php web page is not displayed?

王林
Release: 2023-03-13 09:50:01
Original
5932 people have browsed it

Solution to the problem that php web page content is not displayed: 1. Open the php.ini configuration file; 2. Uncomment error_reporting and set it to [error_reporting=E_ALL&~E_NOTICE]; 3. Restart the server.

What should I do if the content of the php web page is not displayed?

The operating environment of this article: windows10 system, php 7, thinkpad t480 computer.

Problem:

I accidentally discovered that when opening a web page, a blank page was displayed. Before, the content was displayed normally. The website has always been normal on the server, and other connections are also normal.

Solution:

1. Open the php configuration file php.ini;

2. Remove the semicolon before error_reporting;

3. Set it to :error_reporting = E_ALL & ~E_NOTICE

4. Restart the apache server.

Recommended learning: php training

The above is the detailed content of What should I do if the content of the php web page is not displayed?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!