|
PHP复制代码
$this->load->helper('captcha');
$vals = array(
'word' => rand(1000, 9999),
'img_path' => './captcha/',
'img_url' => base_url () . '/captcha/',
'img_width' => '70',
'img_height' => '22',
'expiration' => 7200
);
$cap = create_captcha ($vals);
$data = array(
'captcha_time' => $cap['time'],
'ip_address' => $this->input->ip_address(),
'word' => $cap['word']
);
$query = $this->db->insert_string('captcha', $data);
$this->db->query($query);
echo $cap['image'];
复制代码
FIREFOX下正常显示,但是IE下,每次刷新都是显示一样的数字,是怎么回事?
|
|