<?php session_start(); header("Content-type:image/png"); $img_width=100; $img_height=20; srand(microtime()*100000); for($i=0;$i<4;$i++) { $new_number.=dechex(rand(0,15)); } $_SESSION[check_auth]=$new_number; $new_number=imageCreate($img_width,$img_height);//創(chuàng)建圖象 ImageColorAllocate($new_number,255,255,255); //設(shè)置背景色為白色 for($i=0;$i<strlen($_SESSION[check_auth]);$i++) { $font=mt_rand(3,5); $x=mt_rand(1,8) + $img_width*$i/4; $y=mt_rand(1,$img_height/4); $color=imageColorAllocate($new_number,mt_rand(0,100),mt_rand(0,150),mt_rand(0,200));//設(shè)置字符顏色 imageString($new_number,$font,$x,$y,$_SESSION[check_auth][$i],$color);//輸出字符 } ImagePng($new_number); ImageDestroy($new_number); ?>
GD ?????? PHP? ??? ??? ?? ?? ??? ????????.
?? php.ini? ?? ?? ?????: Extension=php_gd2.dll
???? ?? ?????. ??? ???? ????. var_dump(gd_info()); ?? ???? GD ?????? ????? ?????? ?????.
?? auth.html
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

16 Jan 2025
?? ???? ?? ???? Amazon?? ? ?? ??? ??? ????. ???? ??? ???? Medium?? ?? ????? ?? ?? ???. ?? ???? ??? ??????! ??? ??? ? ??? ????! Java? ?? ?? ?? ? ??? ?????.

29 Jul 2016
?? ??? ??: ?? ??? ?? PHP ??? ?? ico ?? ??: index.php ??? ?? ??? ?????: <?PHP $output = "" if(isset($_GET['action'])&&$_GET['action '] == '???'){ if(isset($_FILES['upimage']['tmp_name']) && $_FILES['upimage']['tmp_name'] && is_uploaded_file($_FI


??? ??

PHP? ?? ?? ???? ???? ???? ?????.
PHP? ?? ?? ???? ???? ???? ?????.

PHP ???? ?? ??
PHP ???? ?? ??

???? ???? ?? PHP ?? ?? ???
???? ???? ?? PHP ?? ?? ???
