Home  >  Article  >  Backend Development  >  How to solve the problem that PHP pseudo-static verification code is not displayed

How to solve the problem that PHP pseudo-static verification code is not displayed

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-09-26 14:50:422705browse

How to solve the problem that PHP pseudo-static verification code is not displayed

Make sure that the php environment is usable and the php file can be parsed by normal server software. You can also find php.exe or php-cgi.exe and execute it. If there is no problem with the php configuration, a popup will appear. The cmd window does not close automatically, and then a cursor keeps flashing.

How to solve the problem that PHP pseudo-static verification code is not displayed

Create a new phpinfo.php file under the root directory of the test website. You can refer to the picture for the file content, which is the phpinfo(); statement. Its main function is to display the configuration information of the PHP server. .

How to solve the problem that PHP pseudo-static verification code is not displayed

Related recommendations: "php Basic Tutorial"

Access the phpinfo.php created in the first step in the browser document. Ctrl F queries gd. If it appears, it means that the gd2 library has been loaded. If the verification code still does not appear, please continue to the next step.

How to solve the problem that PHP pseudo-static verification code is not displayed

Especially for utf-8 projects, many novices are accustomed to using the notepad that comes with windows to modify and save some configuration files of the website, so that the encoding of the configuration files can also be changed accordingly. The change is usually from UTF-8 without BOM to UTF-8. It can be said that Notepad and UTF-8 PHP projects are simply a nightmare, and it is also a low-level mistake that novices often make.

How to solve the problem that PHP pseudo-static verification code is not displayed

Use notepad or other editing software to convert the configuration file (it may also be other files, check which files have been modified by Notepad), and convert Re-modify the PHP file encoding to BOM-free UTF-8 encoding format, click Save, and you're done. It is said that those programming experts can write a system with just a notepad, so how did they solve the problem of BOM-free UTF-8 encoding format.

How to solve the problem that PHP pseudo-static verification code is not displayed

How to solve the problem that PHP pseudo-static verification code is not displayed

The above is the detailed content of How to solve the problem that PHP pseudo-static verification code 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
Previous article:How to wrap line in phpNext article:How to wrap line in php