【例
(
//生成驗證碼圖片
Header(
srand((double)microtime()*
$im = imagecreate(
//色彩設置
$r = Array(
$g = Array(
$b = Array(
$key = rand(
$bg = ImageColorAllocate($im
$stringColor = ImageColorAllocate($im
imagefill($im
(
//生成隨機數
$ran=rand(
//將四位整數驗證碼繪入圖片
imagestring($im
返回目錄
編輯推薦
Java Web開發詳解
ASP
ASP
ASP
From:http://tw.wingwit.com/Article/program/PHP/201311/21560.html