【发布时间】:2012-01-28 08:13:39
【问题描述】:
我正在使用 CodeIgniter 的验证码助手为注册用户生成验证码图像。我有这样的价值:
$vals = array(
'word' => $rand_word,
'img_path' => 'resources/captcha/',
'img_url' => 'http://localhost/fitinline/resources/captcha/',
'font_path' => './path/to/fonts/texb.ttf',
'img_width' => 150,
'img_height' => 40,
'expiration' => 7200
);
当我使用create_captcha($vals) 函数生成验证码时,验证码图像自动保存到“img_path”。有一个到期索引,我将默认设置为 2 小时(7200)。但是两个多小时后,我检查了'img_path'中的图像,图像仍然保存在上面。是否有任何缺少的配置来启用自动删除那些验证码图像或什么,。?
谢谢
【问题讨论】:
标签: codeigniter captcha