In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Xiaobian to share with you php version low does not display Captcha solution, I believe most people do not know how to share this article for your reference, I hope you read this article after a great harvest, let us go to understand it!
Php version low does not display Captcha solution: 1, install php5-gd required dependencies;2, create a clean.php file in the project root directory;3, clear bom can.
Operating environment: Windows 7 system, PHP5 version, DELL G3 computer
php version low does not display Captcha how to do?
PHP5 Captcha cannot be displayed, GD library cannot be displayed even if installed normally
I am doing JAVA, but also maintain a direct takeover of PHP projects, PHP is zero basis, do the project server migration, domain name added https, the final check can be normal access, detailed features are not fully tested.
Suddenly, one day, the Captcha of the registration module was complained that it could not be displayed normally (after temporarily removing it, entering the background management module, it was found that the picture upload function was not normal, which was estimated to be a problem). And so began a four-day on-line search for solutions.
In fact, the solution to the general situation is easy to find, some keywords are php-gd, php-fpm(I configure nginx), php.ini, cache cleanup. However, debian system, dependency responsibility to unimaginable, and each version of the dependency name is not the same, and the current system itself is a production environment server, there are various versions of dependency, in short, the head is big.
Finally, after trying to update countless dependency sources and dependencies, I successfully installed the dependencies required by php5-gd. Finally phpinfo also shows in addition to GD version information and supported image formats, however, Captcha still can not be displayed......
After trying countless search keywords,"php5 installed gd also does not show Captcha" finally found a post, which mentioned BOM header, this point is clear, because when crt remote login server edits some files, there will be this BOM header, so create a clean.php file in the project root directory,
Paste the following code
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.