Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖÐrequire×¢ÒâÊÂÏî

¡¾×ª×Ô¡¿£ºhttp://blog.miaoheguang.tk/archives/11
±»PHPµÄinclude·¾¶ÅªÔÎÁË¡£×Ô¼ºÊÔÑéһͨ£¬×ܽáÈçÏ¡£
¶¨ÒåA=°üº¬Îļþ B=±»A°üº¬µÄÎļþ C=±»B°üº¬µÄÎļþ
Ò²¾ÍÊÇ˵ A °üº¬ B£¬ B°üº¬C
AÖÐÓÐ
Php ´úÂë
require ‘[B·¾¶]‘ //(ÕâÀï µÄrequire¿ÉÒÔ»»³Érequire_once include)
require ‘[B·¾¶]&l ......

²é¿´Ò³ÃæÖ´ÐÐphpÕ¼ÓÃÄÚ´æÇé¿ö

½ñÌìÍ·ÄÔÒ»ÈÈ£¬Ïë¿´Ò»ÏÂÒ³ÃæÔÚÖ´ÐеĹý³ÌÖÐÕ¼ÓÃÁ˶àÉÙÄڴ棬ÎÒÒ²²»ÖªµÀÕâÑù×öµÄÄ¿µÄÊÇʲô£¬¿ÉÄÜÊdzöÓÚÎҵĹßÐÔ˼ά°É¡£²»¹ýÕâÑù×öÒ²²»ÊÇÍêȫûÓã¬
Äã¿ÉÒÔÇå³þµÄÖªµÀÄÄÐ©Ò³ÃæÕ¼ÓõÄÄÚ´æ±È½Ï¶à£¬ÌرðÊǶÔÓÚʹÓù²ÓÃÖ÷»úµÄÍøÕ¾£¬Ò»°ã¿Õ¼äÉ̶¼»áÏÞÖÆÃ¿¸öÍøÕ¾µÄ×ÊÔ´Õ¼ÓÃÇé¿öµÄ£¨°üÀ¨cpuºÍÄڴ棩¡£ÍòÒ»ÔÚÎÒ
ÃDz»ÖªµÀµÄÇé¿öÏ£ ......

Php Test

<?php
/*
Version: v1.0
CopyRight Davis.z 2010
Creation Date 2010-02-25
----------------------- Table Script ------------------------
CREATE TABLE [dbo].[T_Employee](
[Name] [nvarchar](50) COLLATE Korean_90_CS_AS NOT NULL,
[Age] [nvarchar](5) COLLATE Korean_90_CI_AS NULL,
[ ......

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 ÅжÏÊÇ·ñµÍË×ͼƬ==ÊÇ·ñ@É«@Çé@ͼ@Ƭ

if(validatorImage("d:\b.jpg"))
echo 'ÊǸöµÍË×ͼƬ<br />';
else
echo '²»ÊǵÍË×ͼƬ<br />';
function validatorImage($fileName){
$image = getImage($fileName);
$width = ImagesX($image);
$height = ImagesY($image);
$ycb = 0;
for($y=0;$y<$height;$y++){
for($x=0;$x<$widt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ