0

我有一个验证码脚本

验证码链接

它使用以下代码:

include 'kcaptcha/kcaptcha.php';
$path = "/";
//this line will produce captcha image
$captcha = new KCAPTCHA();
//writing the cookie so that we can check on next page



//captcha value save as md5 encryption so that when validating is should make md5 mask to captcha form input
setcookie("captcha", md5($captcha->getKeyString()), time()+1000, $path);

此代码适用于本地主机,但不适用于我的实时网站。怎么了?

谢谢你

4

1 回答 1

1

在 config/config.php 的 $config['cookie_domain'] 中输入的域是否正确?

于 2012-04-12T13:43:52.113 回答