<?php
$base = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789';
$words = 5;
$rand_top = strlen($base) - 1;
$string = '';
header("content-type: image/png");
$im = imagecreate($words*16, $words*5);
$black = imagecolorallocate($im, 90, 60, 120);
$white = imagecolorallocate($im, 255, 255, 255);
for($i=0;$i<$words;$i++){
$idx = mt_rand(0, $rand_top);
imagestring($im, 3, $i*15+2, mt_rand(0, $words*2), $base[$idx], $white);
}
imagepng($im);
imagedestroy($im);
?>
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
-
-
-
荐
数据库的设计
数据库的设计一 为什么需要规范的数据库设计数据库设计的步骤收集信息标识实体标识每个实体需要存储的详细信息标识实体...
[阅读全文]
-
-
-
-
-
网友评论