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

PHPÖÐthis self parentÈý¸öÓ¦ÓÃ˵Ã÷

  this,self,parentÈý¸ö¹Ø¼ü×ÖÖ®¼äµÄÇø±ð¡£´Ó×ÖÃæÉϱȽϺÃÀí½â,·Ö±ðÊÇÖ¸Õâ¡¢×Ô¼º¡¢¸¸Çס£ÎÒÃÇÏȽ¨Á¢¼¸¸ö¸ÅÄî,ÕâÈý¸ö¹Ø¼ü×Ö·Ö±ðÊÇÓÃÔÚʲôµØ·½ÄØ?ÎÒÃdzõ²½½âÊÍÒ»ÏÂ,thisÊÇÖ¸Ïòµ±Ç°¶ÔÏóµÄÖ¸Õë(¹ÃÇÒÓÃCÀïÃæµÄÖ¸ÕëÀ´¿´°É),selfÊÇÖ¸Ïòµ±Ç°ÀàµÄÖ¸Õë,parentÊÇÖ¸Ïò¸¸ÀàµÄÖ¸Õë¡£ÎÒÃÇÕâÀïƵ·±Ê¹ÓÃÖ¸ÕëÀ´ÃèÊö£¬ÊÇÒòΪûÓиüºÃµÄÓïÑÔÀ´±í´ï¡£
      Õâô˵»¹²»ÄܺÜÁ˽⣬ÄÇÎÒÃǾ͸ù¾Ýʵ¼ÊµÄÀý×Ó½áºÏÀ´½²½²£º
Php´úÂë
(1) this   
  
 class UserName   
 {   
     //¶¨ÒåÊôÐÔ      
     private $name;   
  
     //¶¨Òå¹¹Ô캯Êý   
     function __construct( $name )   
     {   
          $this->name = $name; //ÕâÀïÒѾ­Ê¹ÓÃÁËthisÖ¸Õë   
     }   
  
     //Îö¹¹º¯Êý   
     function __destruct(){}   
  
     //´òÓ¡Óû§Ãû³ÉÔ±º¯Êý   
     function printName()   
     {   
         print( $this->name ); //ÓÖʹÓÃÁËthisÖ¸Õë   
     }   
 }   
  
 //ʵÀý»¯¶ÔÏó   
 $nameObject = new UserName( "heiyeluren" );   
  
 //Ö´ÐдòÓ¡   
 $nameObject->printName(); //Êä³ö: heiyeluren   
  
 //µÚ¶þ´ÎʵÀý»¯¶ÔÏó   
 $nameObject2 = new UserName( "PHP5" );   
  
 //Ö´ÐдòÓ¡


Ïà¹ØÎĵµ£º

php»·¾³´î½¨

phpÏÂÔØ£º
http://windows.php.net/download/
Ñ¡Ôñ
VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
VC6 x86´ú±í Apache HTTP Server (httpd) 2.2.15 ºÍPHP½áºÏ
apacheÏÂÔØ£º
http://httpd.apache.org/download.cgi#apache22
Ñ¡Ôñ2.2.15
httpd-2.2.15-win32-x86-no_ssl.msi [PGP] [MD5] [SHA1]
apache services 2.2Ð ......

phpÖÐswfuploadÉÏ´«²»ÄÜÅжϵǼ״̬.

ÔÚÏîÄ¿Öн«Ô­ÓеÄÉÏ´«¸ÄΪflash¶àÎļþÉÏ´«,µ«ÊÇÕâÆäÖÐÓöµ½Á˸öºÜÓôÃƵÄÎÊÌâ,µ±ÓÐ×öÓû§ÅжÏʱºò,˵°×Á˾ÍÊÇÅжÏcookieµÄʱºò,»ñÈ¡µ½µÄÖµ×ÜÊÇ¿Õ,µ¼ÖÂ×ÜÊÇÈÏΪÓû§Î´µÇ¼....
ºóÀ´ÉÏÍø²éÁËÏÂ,ÕÒµ½Ò»ÆªÎÄÕÂ:
СÐÄswfupload µÄcookie Bug
ʹÓÃSWFUploadµÄʱºòÒ»¶¨ÒªÐ¡ÐÄcookie
bug£ºÔÚ·ÇIEÄÚºËÄں˵Ää¯ÀÀÆ÷ÏÂʹÓÃSWFUpload ......

·ÖÎöPHPÖеĻº´æ¼¼Êõ

¹ØÓÚPHPµÄ»º´æ¼¼ÊõÎÒ¸öÈ˵Ķ¨ÒåÊÇ¿ÉÒÔ·Ö³É3¸öÀà±ð1;
»º´æÄ£¿éÕâÕâ¸öÊÇÔÚ·þÎñÆ÷ÉÏ×öµÄ»º´æÉèÖÃ, ±ÈÈçZend¹«Ë¾µÄCache²úÆ·µÈ, Ö÷ÒªÔ­ÀíÊÇͨ¹ý¶ÔPHP´úÂëÎļþµÄÒ»´Î±àÒë±£´æÔÚÄÚ´æÖÐ, ͨ¹ý¼õÉÙI /OµÄ²Ù×÷À´¼Ó¿ì·ÃÎÊËÙ¶È, ²»ÔÚ±¾ÎÄÌÖÂÛ·¶Î§Ö®ÁÐ2;
HTML·½Ê½»òÐíÄã˵PHPÉú³ÉHTMLµÄ·½Ê½²»ÔÚ±¾ÎÄÌÖÂ۵ķ¶Î§Ö®ÁÐ, µ«ÊÇÎÒ¸öÈËÈËΪÕâÖ ......

MVCÕæµÄÊʺÏPHPô£¿


½üÀ´Éè¼Æģʽ·çÐУ¬MVCËæ´¦¿É¼û£¬PHPÁìÓòÒ²²»ÀýÍ⣬ºÜ¶àÂÛ̳¶¼¿ªÊ¼ÌÖÂÛÔÚPHPÖÐʹÓÃMVC¡£È»¶ø£¬M¡¢V¡¢CÔÚPHPÖе½µ×¸ÃÈçºÎʵÏÖ£¿MVCÕæµÄÊʺÏPHPô£¿ÕâÀïEasy¸ø³öһЩ×Ô¼ºµÄ˼¿¼¡£
½üÀ´Éè¼Æģʽ·çÐУ¬MVCËæ´¦¿É¼û£¬PHPÁìÓòÒ²²»ÀýÍ⣬ºÜ¶àÂÛ̳¶¼¿ªÊ¼ÌÖÂÛÔÚPHPÖÐʹÓÃMVC¡£È»¶ø£¬M¡¢V¡¢CÔÚPHPÖе½µ×¸ÃÈçºÎʵÏÖ£¿MVCÕæµÄÊʺÏPHP ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ