The verification code generated using CI’s captcha cannot display the img tag, but can it be displayed when accessing the url? ? ?
http://cii.m.com/index.php/ad... can display the verification code
The verification code generated using CI’s captcha cannot display the img tag, but can it be displayed when accessing the url? ? ?
http://cii.m.com/index.php/ad... can display the verification code
I don’t know what your specific reason is. Use the ci method to generate the verification code, make sure your img_path is the correct path and have write permission; make sure the GD library extension is turned on
Try adding __ROOT__
header
Add the output back, keep it consistent with the image type, and then change echo
to return
or add an extra exit
after
echo
Try adding "?"+random string after the url address
Look at the error message about the image path in the console with F12. The problem with the image being unable to come out is more of a path problem