Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

phpÉú³ÉŤÇú¼°ÐýתµÄÑéÖ¤ÂëͼƬ

<?php
function make_rand($length="32"){//ÑéÖ¤ÂëÎÄ×ÖÉú³Éº¯Êý
$str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
$result="";
for($i=0;$i<$length;$i++){
$num[$i]=rand(0,61);
$result.=$str[$num[$i]];
}
return $result;
}
$checkcode = make_rand(5);
$im_x=160;
$im_y=32;
function make_crand($length="5") {
$string = '';
for($i=0;$i<$length;$i++) {
$string .= chr(rand(0xB0,0xF7)).chr(rand(0xA1,0xFE));
}
return $string;
}
function getAuthImage($text , $im_x = 230 , $im_y = 32) {
$im = imagecreatetruecolor($im_x,$im_y);
$text_c = ImageColorAllocate($im, mt_rand(0,100),mt_rand(0,100),mt_rand(0,100));
$tmpC0=mt_rand(100,255);
$tmpC1=mt_rand(100,255);
$tmpC2=mt_rand(100,255);
$buttum_c = ImageColorAllocate($im,$tmpC0,$tmpC1,$tmpC2);
imagefill($im, 16, 13, $buttum_c);
//echo $text;
$font = 'c:\\WINDOWS\\Fonts\\simsun.ttc';
//echo strlen($text);
$text=iconv("gb2312","UTF-8",$text);
//echo mb_strlen($text,"UTF-8");
for ($i=0;$i<mb_strlen($text);$i++)
{
$tmp =mb_substr($text,$i,1,"UTF-8");
$array = array(-1,0,1);
$p = array_rand($array);
$an = $array[$p]*mt_rand(1,9);//½Ç¶È
$size = 20;
imagettftext($im,$size,$an,10+$i*$size*2,25,$text_c,$font,$tmp);
}
$distortion_im = imagecreatetruecolor ($im_x, $im_y);
imagefill($distortion_im, 16, 13, $buttum_c);
for ( $i=0; $i<$im_x; $i++) {
for ( $j=0; $j<$im_y; $j++) {
$rgb = imagecolorat($im, $i , $j);
if( (int)($i+20+sin($j/$im_y*2*M_PI)*10) <= imagesx($distortion_im) && (int)($i+20+sin($j/$im_y*2*M_PI)*10) >=0 ) {
imagesetpixel ($distortion_im, (int)($i+10+sin($j/$im_y*2*M_PI-M_PI*0.5)*3) , $j , $rgb);
}
}


Ïà¹ØÎĵµ£º

PHPÅúÁ¿É¾³ý¼¼ÇÉ


Ê×ÏÈÒªÁ˽âsqlÓï¾ä  
 
$SQL="delete from `PHP100` where id in (1,2,4)";
±íµ¥´ó¸ÅÊÇ£º
 
<form action="" method="post">
<input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="1"/>
<i ......

PHP¿ª·¢¹¤¾ß

Ò» Éè¼Æ¹¤¾ß
UML ºÍÏà¹ØÉè¼Æ¹¤¾ß
- Argo UML
UML»æͼ¹¤¾ß£¬Ö§³ÖPHP stubÉú³É¡£ (commercial spin off is Posideon) –Java±àд¡£
- Umbrello UML
UML»æͼ¹¤¾ß£¬Ö§³ÖPHP stubÉú³É¡£ ÐèÒªUnix / KDE¡£
- Dia
Ö§³ÖUML µÄ»æͼ¹¤¾ß -ʹÓÃAutoDia Éú³ÉPHP¡£
- XMI 2 PHP
´ÓXMIÎĵµÉú³ÉPHP´úÂ룬ÓÃXMLÃèÊöU ......

Ò»ÖÜѧÍêphpÍøÕ¾µÄ¸üÐÂ

      ×î½üÕâ¶Îʱ¼äûÓÐÔõôÈÏÕæȥѧϰһÑù¶«Î÷£¬·´¶øÊÇÕâÑùѧһµãÄÇÑùѧһµãµÄ£¬´º½Ú¸Õ¹ý¿´ÁËÒ»ÏÂASP£¬ÒòΪÀÏʦÕÒÎÒ°ïæŪһÏÂÍøÕ¾£¬µ±Ê±¾õµÃASP»á£¬ËùÒÔ¾ÍÏÈÒÔASPÀ´Á˽âÕâÒ»ÃÅ£¬Ïà¶ÔÆäËûµÄJSP£¬phpÀ´Ëµ£¬ASP»¹ÒªÊìϤһЩ£¬ËùÒÔµ±Ê±¾Í¿´ÁËÒ»ÌìASP£¬¿ÉÒÔ˵ÊÇÎÂÏ°°É¡£
     Ò ......

PHPµÄÈÕÆÚʱ¼äÔËËã×ܽá




<?php
//GB2312µÄEncode
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
/*ÖصãÁ˽âstrtotime()º¯Êý
1¡¢strftime±Ètime()ºÃÓ㬿ÉÒÔÖ±½Ó°Ñ³£ÓõĒ2010-02-03‘ת³Éʱ¼ä´Á¡£
2¡¢date( ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ