[经验]
分享在GoDaddy的Win主机安装动网8.2解决验证码无法通过的经验
|
|
在GoDaddy的Windows主机安装了动网8.2的asp论坛,可是每次登陆输入验证码的时候总是说验证码错误,很郁闷。
后来发现动网8.2的验证码是两个中文字,就猜想是不是GoDaddy的主机对中文支持不好导致验证码是中文的情况下程序一直判断输入的不正确,于是在本地进入动网8.2的后台,把验证码从2个中文字改成了4个数字了,改好之后把Access的mdb数据库重新上传到GoDaddy上。本来以为好了,结果发现服务器上的验证码还是两个中文字,并没有像本地一样变成4个数字。
于是我猜想动网8.2的验证码设置并不是放在数据库中的,然后我把bbs第一层目录下的所有asp重新上传,发现果然服务器上的验证码变成4个数字了,输入数字验证码可以正常登陆了。至此,问题解决。 |
评分
-
查看全部评分
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-8-29 16:20:55
|
显示全部楼层
|
“然后我把bbs第一层目录下的所有asp重新上传”这步是做什么用? |
|
|
|
|
|
|
|
|
|
|
音乐天堂
发表于 2008-8-29 16:27:30
|
显示全部楼层
原帖由 add.c 于 2008-8-29 04:20 PM 发表 
“然后我把bbs第一层目录下的所有asp重新上传”这步是做什么用?
进入后台改了验证码变成4个数字后,发现第一层的一些asp文件的修改日期变成今天的了,说明后台会自动改这些asp文件,也就是验证码的样式是储存在这些asp文件中的,于是我把第一层的所有asp文件重新上传了。 |
|
|
|
|
|
|
|
|
|
|
meabul
发表于 2008-11-12 19:56:26
|
显示全部楼层
楼主的只是变相的解决了问题,这个问题的根本解决办法是修改Dv_Getcode.asp文件。
修改方式如下:
原始文件头部:
<%
'//===================================================
' 动网论坛验证码
' 作者 Dv.HxyMan
' 更新 2008-1-4
' 说明 前半部分为字库,后半部分为验证码生成程序。
' 可适当自行增加字库。默认为300个一级常用字。
'//===================================================
'----自动成生配置区_开始(请不要改动下面区块的内容,否则后台验证码设定程序将不能识别。)----
'<root><captcha_chartype_chinese>1</captcha_chartype_chinese><captcha_chartype_english>0</captcha_chartype_english><captcha_chartype_number>0</captcha_chartype_number><captcha_size>2</captcha_size><captcha_width_lbound>25</captcha_width_lbound><captcha_width_ubound>30</captcha_width_ubound><captcha_height_lbound>23</captcha_height_lbound><captcha_height_ubound>28</captcha_height_ubound><captcha_spacing_lbound>-6</captcha_spacing_lbound><captcha_spacing_ubound>0</captcha_spacing_ubound><captcha_angle_lbound>-15</captcha_angle_lbound><captcha_angle_ubound>15</captcha_angle_ubound><captcha_weight>1</captcha_weight><captcha_charshow>0</captcha_charshow><captcha_charshow_stepbystep_r>231</captcha_charshow_stepbystep_r><captcha_charshow_stepbystep_g>-1</captcha_charshow_stepbystep_g><captcha_charshow_stepbystep_b>-1</captcha_charshow_stepbystep_b><captcha_charshow_simple_r>0</captcha_charshow_simple_r><captcha_charshow_simple_g>0</captcha_charshow_simple_g><captcha_charshow_simple_b>8</captcha_charshow_simple_b><captcha_backshow>2</captcha_backshow><captcha_backshow_stepbystep_r>-1</captcha_backshow_stepbystep_r><captcha_backshow_stepbystep_g>-1</captcha_backshow_stepbystep_g><captcha_backshow_stepbystep_b>-1</captcha_backshow_stepbystep_b><captcha_backshow_simple_r>255</captcha_backshow_simple_r><captcha_backshow_simple_g>255</captcha_backshow_simple_g><captcha_backshow_simple_b>255</captcha_backshow_simple_b><captcha_charshow_mix_percent>30</captcha_charshow_mix_percent><captcha_backshow_mix_percent>10</captcha_backshow_mix_percent><captcha_pic_width>60</captcha_pic_width><captcha_pic_height>30</captcha_pic_height></root>
'----自动成生配置区_结束--------------------------------------------------------
Option Explicit
Dim server_v1,server_v2,Chkpost
修改为:
<%@ LANGUAGE = VBScript CodePage = 936%>
<%
Option Explicit
Response.Buffer = True
Response.Charset = "GB2312"
'//===================================================
' 动网论坛验证码
' 作者 Dv.HxyMan
' 更新 2008-1-4
' 说明 前半部分为字库,后半部分为验证码生成程序。
' 可适当自行增加字库。默认为300个一级常用字。
'//===================================================
'----自动成生配置区_开始(请不要改动下面区块的内容,否则后台验证码设定程序将不能识别。)----
'<root><captcha_chartype_chinese>1</captcha_chartype_chinese><captcha_chartype_english>0</captcha_chartype_english><captcha_chartype_number>0</captcha_chartype_number><captcha_size>2</captcha_size><captcha_width_lbound>25</captcha_width_lbound><captcha_width_ubound>30</captcha_width_ubound><captcha_height_lbound>23</captcha_height_lbound><captcha_height_ubound>28</captcha_height_ubound><captcha_spacing_lbound>-6</captcha_spacing_lbound><captcha_spacing_ubound>0</captcha_spacing_ubound><captcha_angle_lbound>-15</captcha_angle_lbound><captcha_angle_ubound>15</captcha_angle_ubound><captcha_weight>1</captcha_weight><captcha_charshow>0</captcha_charshow><captcha_charshow_stepbystep_r>231</captcha_charshow_stepbystep_r><captcha_charshow_stepbystep_g>-1</captcha_charshow_stepbystep_g><captcha_charshow_stepbystep_b>-1</captcha_charshow_stepbystep_b><captcha_charshow_simple_r>0</captcha_charshow_simple_r><captcha_charshow_simple_g>0</captcha_charshow_simple_g><captcha_charshow_simple_b>8</captcha_charshow_simple_b><captcha_backshow>2</captcha_backshow><captcha_backshow_stepbystep_r>-1</captcha_backshow_stepbystep_r><captcha_backshow_stepbystep_g>-1</captcha_backshow_stepbystep_g><captcha_backshow_stepbystep_b>-1</captcha_backshow_stepbystep_b><captcha_backshow_simple_r>255</captcha_backshow_simple_r><captcha_backshow_simple_g>255</captcha_backshow_simple_g><captcha_backshow_simple_b>255</captcha_backshow_simple_b><captcha_charshow_mix_percent>30</captcha_charshow_mix_percent><captcha_backshow_mix_percent>10</captcha_backshow_mix_percent><captcha_pic_width>60</captcha_pic_width><captcha_pic_height>30</captcha_pic_height></root>
'----自动成生配置区_结束--------------------------------------------------------
Dim server_v1,server_v2,Chkpost |
|
|
|
|
|
|
|
|
|
|
5256
发表于 2010-3-2 08:56:51
|
显示全部楼层
|
那由此引申一下,是不是所有的在godaddy的验证码显示不出来的程序都不是放在数据库中的,比如免费空间中安装的ucenter和discuz不显示验证码是不是也是这个原因? |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-3-2 09:18:51
|
显示全部楼层
回复 5# 的帖子
貌似不一样的. 他们说的是动网验证码输入正确却不能不能通过,
和免费空间的验证码不能显示是另外一回事 |
|
|
|
|
|
|
|
|
|
|
anjie0625
发表于 2010-3-14 23:02:15
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-3-15 10:19:56
|
显示全部楼层
原帖由 anjie0625 于 2010-3-14 23:02 发表 
谢谢,解决了。
那种方法解决的? |
|
|
|
|
|
|
|
|
|
|
天凡
发表于 2010-3-15 12:39:28
|
显示全部楼层
我方的DVBBS没问题,也没做过任何改动。http://www.szv3.cn/
楼主最后解决了,麻烦说说,让其他同学也可以了解一下 |
|
|
|
|
|
|
|
|