This article mainly introduces the reasons and solutions why thinkPHPcannot displayVerification Code, and analyzes the related configuration methods and solutions of thinkPHP regarding verification code display based on specific examples.Notes, friends in need can refer to the following
The examples in this article describe the reasons and solutions for thinkPHP not displaying the verification code. I share it with you for your reference. The details are as follows:
I went to the company today and after svn updatecode, after entering the domain name on the browser, the verification code is not displayed. I can’t find it. After half a morning, I took a closer look at apache'sconfiguration file
ServerName admin.exam.com DocumentRoot E:/www/exam/trunk/server/Admin/ Options FollowSymLinks AllowOverride all Order deny,allow allow from all Satisfy all
It turned out that DocumentRoot and Directory were inconsistent
ServerName admin.exam.com DocumentRoot E:/www/exam/trunk/server/Admin/ Options FollowSymLinks AllowOverride all Order deny,allow allow from all Satisfy all
It should be when adding the background, the configuration file I was careless when copying a module.
In addition:
A colleague encountered a similar problem today. I thought it could be solved by using the above method, but it didn’t work after trying it. With a really pragmatic attitude, I took a look at the source file that generated the verification code, and finally found out that it turned out that the crystal.ttf font file was not displayed. No wonder it only displayed one line.Move the font file to the location of the source file. The directorywill be ok.
The above is the detailed content of PHP example-thinkPHP cannot display the verification code and analysis of the reasons and solutions. For more information, please follow other related articles on the PHP Chinese website!