[教學] Confirm Code顯示不出來的問題
發表於 : 2006-05-10 10:17
1.需要有GD
1.1 Windows在4.3以後的版本都有內建了,只要把extension裡得PHP_GD2.dll啟用就好
1.2 Linux系列如果是自行編譯的要加上with --gd[=directory]
2.參照這篇
http://www.phpbb.com/phpBB/viewtopic.ph ... light=zlib
修改includes/usercp_register.php
OPEN:
include/usercp_register.php
FIND (version 2.0.20: Line 994):
$code = strtoupper(str_replace('0', 'o', substr($code, 6)));
REPLACE WITH :
$code = strtoupper(str_replace('0', 'o', substr($code, 0, 6)));
That works for me. Because the code generated was too long (10 Chars) for SQL und image generation.
這樣應該就可以用了,但不見得每個人都適用,請多找找文章來解決自己的問題。
1.1 Windows在4.3以後的版本都有內建了,只要把extension裡得PHP_GD2.dll啟用就好
1.2 Linux系列如果是自行編譯的要加上with --gd[=directory]
2.參照這篇
http://www.phpbb.com/phpBB/viewtopic.ph ... light=zlib
修改includes/usercp_register.php
OPEN:
include/usercp_register.php
FIND (version 2.0.20: Line 994):
$code = strtoupper(str_replace('0', 'o', substr($code, 6)));
REPLACE WITH :
$code = strtoupper(str_replace('0', 'o', substr($code, 0, 6)));
That works for me. Because the code generated was too long (10 Chars) for SQL und image generation.
這樣應該就可以用了,但不見得每個人都適用,請多找找文章來解決自己的問題。