源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

thinkPHP显示不出验证码的原因与解决方法分析

  • 时间:2022-02-12 02:33 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:thinkPHP显示不出验证码的原因与解决方法分析
本文实例讲述了thinkPHP显示不出验证码的原因与解决方法。分享给大家供大家参考,具体如下: 今天到公司,svn update代码后,在浏览器上输入域名后,在验证码那块显示不出,找了半个上午,后来仔细看了下apache的配置文件
<VirtualHost *:80>
    ServerName admin.exam.com
    DocumentRoot E:/www/exam/trunk/server/Admin/
    <Directory E:/www/exam/trunk/server/apps/Admin/>
        Options FollowSymLinks
        AllowOverride all
        Order deny,allow
        allow from all
        Satisfy all
    </Directory>
</VirtualHost>

原来是DocumentRoot和Directory不一致
<VirtualHost *:80>
    ServerName admin.exam.com
    DocumentRoot E:/www/exam/trunk/server/Admin/
    <Directory E:/www/exam/trunk/server/Admin/>
        Options FollowSymLinks
        AllowOverride all
        Order deny,allow
        allow from all
        Satisfy all
    </Directory>
</VirtualHost>

应该是再添加后台的时候,配置文件时复制里一个模块的,粗心了。 [b]另外:[/b] 今天一同事又遇到类似的问题,我以为用上面的方法就可以解决呢,可是试了下不行,本着求真务实的态度我就去瞅了下生成验证码的源文件,终于发现了,原来是那个crystal.ttf字体文件不显示,难怪就只显示一条线,把字体文件移到源文件所在的目录就ok了。 更多关于thinkPHP相关内容感兴趣的读者可查看本站专题:《[url=http://www.1sucai.cn/Special/39.htm]ThinkPHP入门教程[/url]》、《[url=http://www.1sucai.cn/Special/853.htm]thinkPHP模板操作技巧总结[/url]》、《[url=http://www.1sucai.cn/Special/129.htm]ThinkPHP常用方法总结[/url]》、《[url=http://www.1sucai.cn/Special/32.htm]codeigniter入门教程[/url]》、《[url=http://www.1sucai.cn/Special/445.htm]CI(CodeIgniter)框架进阶教程[/url]》、《[url=http://www.1sucai.cn/Special/546.htm]Zend FrameWork框架入门教程[/url]》及《[url=http://www.1sucai.cn/Special/350.htm]PHP模板技术总结[/url]》。 希望本文所述对大家基于ThinkPHP框架的PHP程序设计有所帮助。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部