|
发表于 2012-10-18 12:00:47
|
显示全部楼层
public function show_captcha(){
$vals=array(
'word'=>rand(1000,10000),
'img_path'=>'./captcha/',
'img_url'=>base_url()."captcha/",
'img_width'=>'80',
'img_height'=>'30',
'expiration'=>5
);
$cap=create_captcha($vals);
$img=$cap['image'];
$time=$cap['time'];
$num=$cap['word'];
echo $img."<br/>--------------------<br/>".$time."<br/>--------------------<br/>".$num."<br/>--------------------<br/>";
} |
|