我使用CodeIgniter的验证码助手为注册用户生成验证码图像。我有一定的价值是这样的:自动删除验证码图像CI
$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
);
验证码图片自动保存到“img_path”当我使用create_captcha($vals)
函数生成的验证码。有过期指数,我默认设置为2小时(7200)。但超过两个小时后,我检查'img_path'中的图像,图像仍保存在其上。是否有任何缺失的配置,使自动删除这些验证码图像或什么,。?
谢谢