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

phpͼƬ´¦ÀíÀࣺËõÂÔ£¬²Ã¼ô£¬Ô²½Ç£¬Çãб

<?php
/*
    Í¼Æ¬´¦ÀíÀࣺËõÂÔ£¬²Ã¼ô£¬Ô²½Ç£¬Çãб
*/
class resizeimage
{
   //ͼƬÀàÐÍ
   var $type;
   //ʵ¼Ê¿í¶È
   var $width;
   //ʵ¼Ê¸ß¶È
   var $height;
   //¸Ä±äºóµÄ¿í¶È
   var $resize_width;
   //¸Ä±äºóµÄ¸ß¶È
   var $resize_height;
   //ÊÇ·ñ²Ãͼ
   var $cut;
   //ԴͼÏó
   var $srcimg;
   //Ä¿±êͼÏóµØÖ·
   var $dstimg;
   //Ô²½ÇÔ´
   var $corner;
   var $im;
function resizeimage($img, $corner, $wid, $hei,$c, $corner_radius, $angle)
   {
       $this->srcimg = $img;
       $this->corner = $corner;
       $this->resize_width = $wid;
       $this->resize_height = $hei;
       $this->cut = $c;
       $this->corner_radius = $corner_radius;
       $this->angle = $angle;
       //ͼƬµÄÀàÐÍ
       $this->type = substr(strrchr($this->srcimg,"."),1);
       //³õʼ»¯Í¼Ïó
       $this->initi_img();
       //Ä¿±êͼÏóµØÖ·
       $this -> dst_img();
       //--
       $this->width = imagesx($this->im);
       $this->height = imagesy($this->im);
       //Éú³ÉͼÏó
       $this->newimg();
       ImageDestroy ($this->im);
   }
   function newimg()
   {
       //


Ïà¹ØÎĵµ£º

ÓÅ»¯PHP´úÂëµÄ40Ìõ½¨Òé


1.Èç¹ûÒ»¸ö·½·¨¿É¾²Ì¬»¯£¬¾Í¶ÔËü×ö¾²Ì¬ÉùÃ÷¡£ËÙÂÊ¿ÉÌáÉýÖÁ4±¶¡£
2.echo ±È print ¿ì¡£
3.ʹÓÃechoµÄ¶àÖØ²ÎÊý£¨Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã£©´úÌæ×Ö·û´®Á¬½Ó¡£
4.ÔÚÖ´ÐÐforÑ­»·Ö®Ç°È·¶¨×î´óÑ­»·Êý£¬²»ÒªÃ¿Ñ­»·Ò»´Î¶¼¼ÆËã×î´óÖµ¡£
5.×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6.¾¡Á¿±ÜÃâʹÓÃ__get£¬__set£¬__auto ......

PHP°²×°ÎÊÌ⣺±àÒë°²×°php5.2.0ʱ³ö´í½â¾ö·½°¸

±àÒë°²×°php5.2.0ʱ³ö´í½â¾ö·½°¸
1.´íÎóÐÅÏ¢...................ÈçÏÂ
checking for mcrypt support... no
checking for mhash support... no
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS ......

PHP һЩ֪ʶ

1.È¡µÃµ±Ç°ÄÚ´æÊ¹ÓôóС£ºmemory_get_usage()
2.¼ÆËãÖ´ÐÐʱ¼ä£ºmicrotime(true)
3.ÉèÖÃscriptÖ´ÐÐʱ¼äÏÞÖÆset_time_limit
4.ÉèÖÃÄÚ´æÏÞÖÆini_set("memory_limit","256M");
3.´ÓÔ¶³ÌÏÂÔØÎļþµÄÁ½¸ö·½·¨£º
$contents=file_get_contents("http://www.govtrack.us/data/us/gis/zip4dist-prefix.t ......

PHPµ÷Óô洢¹ý³Ì³¬Ê±½â¾ö·½·¨


×î½ü¹¤×÷ÖÐÓöµ½Ò»¸öÍ·ÌÛµÄÎÊÌâ:phpÖе÷ÓÃÒ»¸ö´æ´¢¹ý³Ì(Òª¸´ÖÆN¶àÊý¾ÝµÄ.),ÓÉÓڴ˹ý³ÌÖ´ÐÐʱ¼äºÜ³¤.µ¼ÖÂphp×ÜÊdz¬Ê±´íÎó:
Service Temporarily Unavailable
The
server is temporarily unable to service your request due to maintenance downtime
or capacity problems
.
Please
try
again
later
.
ÎÊÌ ......

¹ØÓÚphpµÄÒýÓÃ

ÎĵµÊÇÕâô˵µÄ£º
PHP µÄÒýÓÃÔÊÐíÓÃÁ½¸ö±äÁ¿À´Ö¸Ïòͬһ¸öÄÚÈÝ¡£Òâ˼ÊÇ£¬µ±ÕâÑù×öʱ£º
<?php
$a
=&
$b
;
?>

ÕâÒâζ×Å $a
ºÍ $b

Ö¸ÏòÁËͬһ¸ö±äÁ¿¡£
×¢: $a
ºÍ $b

ÔÚÕâÀïÊÇÍêÈ«ÏàͬµÄ£¬Õâ²¢²»ÊÇ $a
Ö¸ÏòÁË $b

»òÕßÏà·´£¬¶øÊÇ $a
ºÍ $b
Ö¸ÏòÁËͬһ¸öµØ·½¡£
ËùÒÔ£º
<?ph ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ