时间:2021-07-01 10:21:17 帮助过:16人阅读
imagestring($_img,5,$i*$_width/$_rnd_code+mt_rand(1,10),mt_rand(1,$_height/2),$_SESSION['code'][ '$i'],$_black);
应该这样
imagestring($_img,5,$i*$_width/$_rnd_code+mt_rand(1,10),mt_rand(1,$_height/2),$_SESSION['code'][ $i],$_black);
( ! ) Notice: Undefined variable: _nmsg in \demo.php on line 10
Call Stack
# Time Memory Function Location
1 0.0006 146856 {main}( ) ..\demo.php:0
( ! ) Warning: Illegal string offset '$i' in \demo.php on line 42
Call Stack
# Time Memory Function Location
1 0.0006 146856 {main}( ) ..\demo.php:0
( ! ) Warning: Illegal string offset '$i' in \demo.php on line 42
Call Stack
# Time Memory Function Location
1 0.0006 146856 {main}( ) ..\demo.php:0
( ! ) Warning: Illegal string offset '$i' in \demo.php on line 42
Call Stack
# Time Memory Function Location
1 0.0006 146856 {main}( ) ..\demo.php:0
( ! ) Warning: Illegal string offset '$i' in \demo.php on line 42
Call Stack
# Time Memory Function Location
1 0.0006 146856 {main}( ) ..\demo.php:0
改成这样就可以了
输出验证码for($i=0;$i
谢谢了啦 发钱了