简体   繁体   English

如何在zf2中的本地xampp服务器上运行验证码

[英]How to run captcha on local xampp server in zf2

我正在尝试运行在zf2中的项目,但是图像验证码无法正常工作。

You have to check your loaded PHP modules. 您必须检查已加载的PHP模块。 If ZF2 uses GD or ImageMagic to generate images you have to enable them in your PHP configuration file. 如果ZF2使用GD或ImageMagic生成图像,则必须在PHP配置文件中启用它们。 On Windows: 在Windows上:

extension=php_gd2.dll

php -m |find "gd"

I have written a Google reCaptcha form element, viewhelper and validator module for ZF2. 我已经为ZF2编写了一个Google reCaptcha表单元素,viewhelper和验证器模块。

You can find it here if you are interested, https://github.com/krytenuk/recaptchav2 . 如果您有兴趣,可以在这里找到它, https://github.com/krytenuk/recaptchav2

Docs are also online here . 文档也在此处在线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM