Home > CMS Tutorial > PHPCMS > How does PHPCMS solve the problem that the verification code cannot be loaded?

How does PHPCMS solve the problem that the verification code cannot be loaded?

Guanhui
Release: 2020-05-13 17:05:56
Original
2038 people have browsed it

How does PHPCMS solve the problem that the verification code cannot be loaded?

How does PHPCMS solve the problem that the verification code cannot be loaded?

Method 1. Open the php.ini file and enable the php_gd2 extension;

Find the php.ini file, search for the extension=php_gd2.dll code, and then remove the ";" symbol in front.

Method 2. Modify the website path variable "web_path" in the PHPCMS configuration file "system";

The key point is that the picture to obtain the verification code is related to the global variable SITE_URL , which is the directory of the website, so just modify the website path variable 'web_path' in the cache/configs/system.php file.

Example (local domain name http://localhost)

If all files are in the root directory (such as htdocs under apache), at this time, the default access address should be http: //localhost/, then 'web_path'=>'/'. If the default access address of the website is not the root directory, you need to change the value of the variable 'web_path' to the new directory address, such as install in the root directory. In a subdirectory, it should be 'web_path'=>'/install/'. Note that the last '/' cannot be omitted.

Method 3. Change the encoding of the config.inc.php file to ANS.

Modify the encoding of the config.inc.php file to ANSI, which is the same as the encoding of checkcode.php, because the encoding of checkcode.php is ANSI!
Find a UTF-8 text tool, such as UltraEdit-32, and just save it.

Recommended tutorial: "PHPCMS Tutorial"

The above is the detailed content of How does PHPCMS solve the problem that the verification code cannot be loaded?. 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