Verification code generated using think-captcha in thinkphp5 is not displayed
crazier
crazier 2017-09-04 16:03:55
0
1
1984

The verification code generated by think-captcha in thinkphp5 is not displayed

The generated verification code is displayed as follows

QQ图片20170904160213.png

Baidu said to add line 39 in helper.php under captcha

\think\Route::rule('captcha','index/captcha');

But it still can’t be displayed

Newbie please give me some advice

crazier
crazier

reply all(1)
冰泪000

It may be caused by the BOM header in your entry file. Search php.bom online and execute it in the project root directory, and try again.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template