Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the phpcms background verification code is not displayed?

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what to do if the phpcms background CAPTCHA is not displayed. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Method 1: check whether the gd library is open

1. Find the php.ini file and search for the code extension = php_gd2.dll (windows)

2. Then remove the previous symbols.

You may need to install the gd library in centOS6.5:

Sudo yum install gd gd-devel php-gdsudo service php-fpm restart

Method 2:

The key point is that getting the image of the CAPTCHA is related to the global variable SITE_URL, that is, the directory of the website, so just modify the website path variable 'web_path'' in the cache/configs/system.php file.

In addition:

The / caches/configs/system.php file also needs to be UTF-8 encoded.

Give an example (local domain name http://localhost)

If all the files are in the root directory (for example, htdocs under apache), 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, for example, in the install subdirectory under the root directory, then it should be' web_path'= >'/ install/',. The last'/ 'cannot be omitted.

Method 3:

Modify the encoding of the config.inc.php file to ANSI, which is consistent with the encoding of checkcode.php, because the encoding of checkcode.php is ANSI!

Find a UTF-8 text tool, such as UltraEdit-32, and save it as UTF-8 without BOM.

On the phpcms background verification code does not show how to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report