What should I do if a blank page appears when installing PHP website?

藏色散人
Release: 2023-03-17 08:26:01
Original
1562 people have browsed it

Solution to the blank page when installing PHP website: 1. Find and open the "php.ini" file; 2. Change the content to "short_open_tag=On"; 3. View the server through "phpinfo();" Just configure the information.

What should I do if a blank page appears when installing PHP website?

The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.

What should I do if a blank page appears when installing PHP website?

Solution:

Go to winnt/php.ini and change the short_tag. Some are short_open_tag=On, because I used the simple writing method of php

<?
 echo   phpinfo ();
 ?>
Copy after login

In fact, if short_tag=Off, it cannot be recognized, so writing

<? php
 echo   phpinfo ();
 ?>
Copy after login

will have better compatibility.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What should I do if a blank page appears when installing PHP website?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
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