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

php ÑéÖ¤Âë×ܽá

´úÂëÈçÏÂ:
    <?php
       /*   ÍøÕ¾ÑéÖ¤Âë³ÌÐò
        *   ÔËÐл·¾³£º PHP5.0.18 ϵ÷ÊÔͨ¹ý
        *   ÐèÒª gd2 ͼÐοâÖ§³Ö£¨PHP.INIÖÐ php_gd2.dll¿ªÆô£©
        *   ÎļþÃû: showimg.php
        *   ×÷Õߣº  17php.com
        *   Date:   2007.03
        *   ¼¼ÊõÖ§³Ö£º www.17php.com
        */
       //Ëæ»úÉú³ÉÒ»¸ö4λÊýµÄÊý×ÖÑéÖ¤Âë
        $num="";
        for($i=0;$i<4;$i++){
        $num .= rand(0,9);
        }
       //4λÑéÖ¤ÂëÒ²¿ÉÒÔÓÃrand(1000,9999)Ö±½ÓÉú³É
       //½«Éú³ÉµÄÑéÖ¤ÂëдÈësession£¬±¸ÑéÖ¤Ò³ÃæʹÓÃ
        Session_start();
        $_SESSION["Checknum"] = $num;
       //´´½¨Í¼Æ¬£¬¶¨ÒåÑÕÉ«Öµ
        Header("Content-type: image/PNG");
        srand((double)microtime()*1000000);
        $im = imagecreate(60,20);
        $black = ImageColorAllocate($im, 0,0,0);
        $gray = ImageColorAllocate($im, 200,200,200);
        imagefill($im,0,0,$gray);
        //Ëæ»ú»æÖÆÁ½ÌõÐéÏߣ¬Æð¸ÉÈÅ×÷ÓÃ
        $style = array($black, $black, $black, $b


Ïà¹ØÎĵµ£º

PHPÖ®$_SERVERÓ÷¨Ïêϸ

$_SERVER['PHP_SELF']                        #µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document rootÏà¹Ø¡£
$_SERVER['argv']            &n ......

PHPÖг£ÓõÄ×Ö·û´®º¯Êý

¡¡PHPÖеÄ×Ö·û´®²Ù×÷¹¦ÄÜÊDZȽ϶àµÄ,ÖØÒªµÄÓÐÒÔÏÂÕâЩ:
¡¡¡¡(1)echo,print,printf,sprintf
¡¡¡¡Ç°Á½¸öº¯ÊýÊÇÊä³ö×Ö·û´®.×Ö·û´®ÖÐÈç¹ûÓбäÁ¿ÃûÔò±»Ìæ»»³ÉÆäÖµ. ºóÁ½¸öº¯ÊýÀàËÆÓÚCµÄͬÃûº¯Êý.
¡¡¡¡(2)strchr,strlen,strtok,strrchr,strrev,strstr,strtolower, strtoupper,substr,ucfirst
¡¡¡¡ÕâЩÊdz£ÓõÄ×Ö·û´®²Ù×÷º¯Êý, ......

PHPѹËõÓë½âѹËõPCLZIP(±ê×¼°æ)

<?php
include_once('include/pclzip.lib.php');
$archive = new PclZip('archive.zip');
//½âѹËõµ½extract/folder/Õâ¸öĿ¼ÖÐ
$list = $archive->extract(PCLZIP_OPT_PATH, "extract/folder/");

//Ôö¼ÓÕâ¸öĿ¼ÔÚѹËõµµÖУ¬Íê³ÉÒÔºóѹËõµµÀïÃæ»áÓÐbackupÕâ¸öĿ¼£¬backupÀïÃæ»áÓÐÕâÁ½¸öµµ°¸ ......

phpÎļþÉÏ´«º¯Êý

<?php
/**
+++++++++++++++++++++=+++++ÉÏ´«Í¼Æ¬++++++++++++++++++++++++++++++++++++++++
—————————————————————————————&mdas ......

PHP¸ßÊÖÑø³ÉÃؼ®

ÓÐÖÖ˵·¨£ºPHPÊÇ×î¼òµ¥µÄÍøÕ¾¿ª·¢ÓïÑÔ£¬ÕâÖÖ¹ÛµãÊÇ´íµÄ¡£
ľͷ±È»ýľ¼òµ¥£¬µ«Ä¾½³ºÍº¢×ӵIJî±ðÊÇľ½³ÄÜ°ÑľͷºÍ»ýľ¶¼±ä³É·¿×Ó£¬º¢×ÓÖ»ÄÜ°Ñ»ýľ±ä³É·¿×Ó£¬¶ÔÓÚľͷËûÃÇÖ»ÄÜÔÚÉÏÃæ»­¸ö·¿×Ó¶øÒÑ¡£
PHP¾ÍÏñľͷ£¬²ËÄñÖ»ÄÜÓÃËü×öµã¼òµ¥µÄÊÂÇ飬¸ßÊ־ͻá°ÑËü±ä³ÉÎÞËù²»ÄÜ¡£
¼ÈÈ»PHP¼òµ¥ÓÖÊǸßÊÖìÅÒ«µÄ¶«Î÷£¬ÄÇÔõôѧ²ÅÄܱä³É¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ