Home  >  Article  >  Backend Development  >  What should I do if the content of the php web page is not displayed?

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

王林
王林Original
2021-10-14 17:06:115959browse

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!

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