½²½²phpµÄħÊõ·½·¨
PHP5.0ºó£¬phpÃæÏò¶ÔÏóÌá³É¸ü¶à·½·¨£¬Ê¹µÃphp¸ü¼ÓµÄÇ¿´ó£¡£¡
һЩÔÚPHP½ÐħÊõ·½·¨µÄº¯Êý£¬ÔÚÕâÀï½éÉÜһϣºÆäʵÔÚÒ»°ãµÄÓ¦ÓÃÖУ¬ÎÒÃǶ¼ÐèÒªÓõ½ËûÃÇ£¡£¡
1.__construct() µ±ÊµÀý»¯Ò»¸ö¶ÔÏóµÄʱºò£¬Õâ¸ö¶ÔÏóµÄÕâ¸ö·½·¨Ê×Ïȱ»µ÷Óá£
Java´úÂë
class Test { function __construct() { echo "before"; } } $t = new Test();
class Test { function __construct() { echo "before"; } } $t = new Test();
Êä³öÊÇ£º
start
ÎÒÃÇÖªµÀphp5¶ÔÏóÄ£ÐÍ ºÍÀàÃûÏàͬµÄº¯ÊýÊÇÀàµÄ¹¹Ô캯Êý£¬ÄÇôÈç¹ûÎÒÃÇͬʱ¶¨Òå¹¹Ô캯ÊýºÍ__construct()·½·¨µÄ»°,php5»áĬÈϵ÷Óù¹Ô캯Êý¶ø²»»áµ÷ÓÃ__construct()º¯Êý£¬ËùÒÔ__construct()×÷ΪÀàµÄĬÈϵĹ¹Ô캯Êý
2.__destruct() µ±É¾³ýÒ»¸ö¶ÔÏó»ò¶ÔÏó²Ù×÷ÖÕÖ¹µÄʱºò£¬µ÷Óø÷½·¨¡£
Java´úÂë
class Test { function __destruct() { echo "end"; } } $t = new Test();½«»áÊä³öend
class Test { function __destruct() { echo "end"; } } $t = new Test();½«»áÊä³öend
ÎÒÃǾͿÉÒÔÔÚ¶ÔÏó²Ù×÷½áÊøµÄʱºò½øÐÐÊÍ·Å×ÊÔ´Ö®ÀàµÄ²Ù×÷
3.__get() µ±ÊÔͼ¶ÁÈ¡Ò»¸ö²¢²»´æÔÚµÄÊôÐÔµÄʱºò±»µ÷Óá£
Èç¹ûÊÔͼ¶ÁÈ¡Ò»¸ö¶ÔÏó²¢²»´æÔÚµÄÊôÐÔµÄʱºò£¬PHP¾Í»á¸ø³ö´íÎóÐÅÏ¢¡£Èç¹ûÔÚÀàÀïÌí¼Ó__get·½·¨£¬²¢ÇÒÎÒÃÇ¿ÉÒÔÓÃÕâ¸öº¯ÊýʵÏÖÀàËÆjavaÖз´ÉäµÄ¸÷ÖÖ²Ù×÷¡£
Java´úÂë
class Test { public function __get($key) { echo $key . " ²»´æÔÚ"; } } $t = new Test(); echo $t->name; ¾Í»áÊä³ö£ºname ²»´æÔÚ
class Test { public function __get($key) { echo $key . " ²»´æÔÚ"; } } $t = new Test(); echo $t->name; ¾Í»áÊä³ö£ºname ²»´æÔÚ
4.__set() µ±ÊÔͼÏòÒ»¸ö²¢²»´æÔÚµÄÊôÐÔдÈëÖµµÄʱºò±»µ÷Óá£
Java´úÂë
class Test { public function __set($key,$value) { echo '¶Ô'.$key . "¸½Öµ".$value; } } $t = new Test(); $t->name = "aninggo"; ¾Í»áÊä³ö£º¶Ô name ¸½Öµ aninggo &nbs
Ïà¹ØÎĵµ£º
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾ ......
Ê×ÏÈ°²×°Íêphp
ºó×îºÃ±£Áôµ±Ê±°²×°µÄÎļþ£¬±ÈÈçÎҵķ¾¶/export1/soft
#cd php-5.2.8/ext/soap
#/usr/local/php/bin/phpize
#./configure --with-php-config=/usr/local/php/bin/php-config
--enable-soap
#make
#make install
±àÒëºóµÄsoap.so
Îļþ± ......
Ò»¡¢ÒýÂÛ
PHP,Ò»ÃÅ×î½ü¼¸ÄêÐËÆðµÄwebÉè¼Æ½Å±¾ÓïÑÔ,ÓÉÓÚËüµÄÇ¿´óºÍ¿ÉÉìËõÐÔ,½ü¼¸ÄêÀ´µÃµ½³¤×ãµÄ·¢Õ¹,phpÏà±È´«Í³µÄaspÍøÕ¾,ÔÚËÙ¶ÈÉÏÓоø¶ÔµÄÓÅÊÆ,Ïëmssqlת6ÍòÌõÊý¾ÝphpÈçÐèÒª40Ãë,asp²»ÏÂ2·ÖÖÓ.µ«ÊÇ,ÓÉÓÚÍøÕ¾µÄÊý¾ÝÔ½À´Ô½¶à,ÎÒÃÇ¿ÊÇóÄܸü¿ìËٵĵ÷ÓÃÊý¾Ý,²»±ØҪÿ´Î¶¼´ÓÊý¾Ý¿âµô,ÎÒÃÇ¿ÉÒÔ´ÓÆäËûµÄµØ·½,±È·½Ò»¸öÎļþ,»òÕßij¸ ......
²Î¿¼×ÊÁÏ£º
1.
2. http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse
1.ÏÂÔØXDebug http://xdebug.org/download.php
Ñ¡ÔñÓÚPHP°æ±¾Ïà¶ÔÓ¦µÄµÄ 5.2 VC6 (32 bit) ÏÂÔØ£¬¸ÄÃû³Éphp_xdebug.dllºó¸´ÖƵ½E:/APMServ5.2.6/PHP/ext/ÖÐ
2£® ÔÚphp.iniÖÐÌí¼ÓÒÔÏÂÄÚÈÝ£¬²¢½«zendµÄÆäËûÓ¦Óùصô£¨×¢Ê͵ôÆäËûzend_extens ......