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

PHPͼÏñͼÐδ¦Àí¼¼Êõ


<?php
     header("content-type:image/png");  //¶¨ÒåÊä³öµÄͼÏñÀàÐÍ£»
     $image=imagecreate(300,155);        //н¨Í¼Ïñ£»
     $bg=imagecolorallocate($image,220,40,120);     //¶¨Òå±³¾°ÑÕÉ«£»
     $textcolor=imagecolorallocate($image,188,215,99);    //¶¨ÒåÎÄ×ÖÑÕÉ«£»
     imagestring($image,30,68,60,'http://www.sy5.com',$textcolor);     
      //ÉèÖò¢Êä³öÎÄ×Ö£»
     imagepng($image);      //Êä³öPNGͼÏñ£»
     imagedestroy($image);      //ÊÍ·ÅͼÏñ×ÊÔ´£»
?>
<?php
 $im=imagecreate(550,200);    //´´½¨Í¼²¼´óС£»
     $bg=imagecolorallocate($im,80,220,30);  //É趨ͼ²¼±³¾°ÑÕÉ«£»
     $color=imagecolorallocate($im,255,0,0);  //ͼÐÎÑÕÉ«£»
     $color1=imagecolorallocate($im,255,255,255);
     $color2=imagecolorallocate($im,255,220,42);
     $color3=imagecolorallocate($im,99,85,25);
     $color4=imagecolorallocate($im,215,115,75);
     imagepolygon($im,array(20,20,90,160,160,20,90,70,23,129),5,$color);
             //»æÖÆÒ»¸ö¶à±ßÐΣ»
     imagerectangle($im,200,10,500,35,$color1); //»æÖÆÒ»¸ö¾ØÐΣ»
     imagearc($im,200,100,100,100,0,360,$color2);  //»æÖÆÒ»¸öÔ²£»
     imagearc($im,300,100,120,50,0,360,$color3);  //»æÖÆÒ»¸öÍÖÔ²£»
     imagesetthickness($im,6);  //ÉèÖÃÍÖÔ²±ßÏߵĿí¶È£»
     imagearc($im,450,100,180,100,180,360,$color4);  //»æÖÆÒ»¸öÍÖÔ²»¡£»
    header("content


Ïà¹ØÎĵµ£º

PHPÍⲿ±äÁ¿Óë»·¾³±äÁ¿

PHPÍⲿ±äÁ¿Óë»·¾³±äÁ¿
PHPµÄÌصãÖ®Ò»¾ÍÊÇ¿ÉÒÔÓüòµ¥µÄ·½Ê½´¦Àí±íµ¥Êý¾Ý£¬»ñÈ¡»·¾³±äÁ¿¡£ÔÚPHPÖУ¬ÕâЩÍⲿÊý¾Ý»ò±äÁ¿±£´æÔÚÒ»ÖÖÌØÊâµÄÈ«¾Ö±äÁ¿Êý×éÖС£
±íµ¥Êý¾Ý
$_GET£º»ñÈ¡GETÇëÇó·¢Ë͵ÄÊý¾Ý
$_POST£º»ñÈ¡POSTÇëÇó·¢Ë͵ÄÊý¾Ý
$_REQUEST£º¿ÉÒÔͬʱ»ñÈ¡GETºÍPOSTÇëÇó·¢Ë͵ÄÊý¾Ý
¡¾Ê¾Àý¡¿
ÇëÇóURL£ºhttp://localh ......

PHPÊÇʲô£¿

PHPÊÇʲô£¿
PHPÊÇÒ»ÖÖ¿ª·¢ÓïÑÔ£¬Ê¼´´ÓÚ1995Ä꣬¹Ù·½ÍøÕ¾www.php.net
PHPµÄÈ«³ÆÊdz¬Îı¾Ô¤´¦ÀíÆ÷£¨Hypertext Preprocessor£©
PHPÊÇÒ»ÖÖ´´½¨¶¯Ì¬½»»¥ÍøÕ¾µÄ·þÎñÆ÷¶Ë½Å±¾ÓïÑÔ£¬Í¨³£ÐèÒª´îÅäApache£¨Web·þÎñÆ÷Èí¼þ£©Ò»ÆðʹÓ㬲»¹ýÒ²¿ÉÒÔ´îÅäÆäËû·þÎñÆ÷Èí¼þ£¬ÈçIIS¡¢NginxµÈ¡£
PHPÊÇ×îÁ÷ÐеÄÍøÕ¾¿ª·¢ÓïÑÔÖ®Ò»£¬ÍêÈ«Ãâ·Ñ ......

Eclipse+PDTÎÞ·¨¼ì²éPHPÓï·¨µÄ½â¾ö·½·¨

PHPeclipse¿ÉÒÔʵÏÖ±£´æphpÎļþºó×Ô¶¯¼ì²éPHPµÄÓï·¨´íÎó,µ«ÊÇÎÒµÄEclipse+PDTȴûÓÐÕâ¸ö¹¦ÄÜ. µ«ÊÇÎҲ鿴ÁËzend.com¹ØÓÚPDTµÄÊÖ²á,·¢ÏÖPDTÊÇÓÐÕâ¸ö¹¦Äܵİ¡. ÖÕÓÚ,ÊÔÁ˼¸Ìì,ÕÒµ½½â¾öµÄ·½·¨ÁË: ÔÚPHP explorer ViewµÄÏîÄ¿Ãû³ÆÉϵã»÷ÓÒ¼ü, Ñ¡Ôñconfigure->Add PHP Support... ÊÀ½çÊÇÄÇôµÄÃÀºÃ~~~ ......

phpÖзÃÎÊmysqlµÄÀý×Ó

<?php
        $mysql_server_name = "localhost";
        $mysql_username = "root";
        $mysql_password = "root";
        ......

phpÓëWebService½»»¥

WebService¼ò½é
Ò»£® ¸ÅÊö
Ä¿Ç°½øÐÐWeb ServiceͨÐÅÓÐÁ½ÖÖЭÒé±ê×¼£¬Ò»ÖÖÊÇXML-RPC£¬ÁíÍâÒ»ÖÖÊÇSOAP¡£
1.        XML-RPC±È½Ï¼òµ¥£¬³öÏÖʱ¼ä±È½ÏÔ磻
2.        SOAP±È½Ï¸´ÔÓ£¬Ö÷ÒªÊÇһЩÐèÒªÎȶ¨¡¢½¡×³¡¢°²È«²¢ÇÒ¸´ÔÓ½»»¥µÄʱºòʹÓá£
PHPÖм ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ