2017,1,3,星期二

成都創(chuàng)新互聯(lián)公司專(zhuān)注為客戶(hù)提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站建設(shè)、成都做網(wǎng)站、碌曲網(wǎng)絡(luò)推廣、小程序定制開(kāi)發(fā)、碌曲網(wǎng)絡(luò)營(yíng)銷(xiāo)、碌曲企業(yè)策劃、碌曲品牌公關(guān)、搜索引擎seo、人物專(zhuān)訪(fǎng)、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);成都創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供碌曲建站搭建服務(wù),24小時(shí)服務(wù)熱線(xiàn):18980820575,官方網(wǎng)址:chinadenli.net
一、所需的代碼,步驟:
1.新建畫(huà)布[新建圖像]
resource p_w_picpathcreatetruecolor ( int $width , int $height );
2.選取顏色
int p_w_picpathcolorallocatealpha ( resource $p_w_picpath , int $red , int $green , int $blue , int $alpha );
3.畫(huà)圖
bool p_w_picpathellipse ( resource $p_w_picpath , int $cx , int $cy , int $width , int $height , int $color )
4.區(qū)域填充
bool p_w_picpathfill( resource $p_w_picpath , int $x , int $y , int $color );
5.生成隨機(jī)數(shù)
int mt_rand( int $min, int $max );
6.隨機(jī)打亂一個(gè)字符串
string str_shuffle( string $str );
7.用 TrueType 字體向圖像寫(xiě)入文本
array p_w_picpathttftext ( resource $p_w_picpath , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text );
8.返回字符串的子串
string substr ( string $string, int $start[, int $length ] )
9.發(fā)送原生 HTTP 頭
void header ( string $string [, bool $replace = true [, int $http_response_code ]] );
10.以 PNG 格式將圖像輸出到瀏覽器或文件
bool p_w_picpathpng ( resource $p_w_picpath [, string $filename ] );
11.銷(xiāo)毀一圖像
bool p_w_picpathdestroy ( resource $p_w_picpath );
網(wǎng)頁(yè)標(biāo)題:使用php設(shè)計(jì)簡(jiǎn)單驗(yàn)證碼
鏈接URL:http://chinadenli.net/article36/pgjjsg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App設(shè)計(jì)、品牌網(wǎng)站建設(shè)、服務(wù)器托管、網(wǎng)站內(nèi)鏈、微信公眾號(hào)、網(wǎng)站設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)