PHPº¯ÊýµÄʵÏÖÔÀí¼°ÐÔÄÜ·ÖÎö
×÷ÕߣºHDK £¨°Ù¶È£©
Ç°ÑÔ
ÔÚÈκÎÓïÑÔÖУ¬º¯Êý¶¼ÊÇ×î»ù±¾µÄ×é³Éµ¥Ôª¡£¶ÔÓÚphpµÄº¯Êý£¬Ëü¾ßÓÐÄÄЩÌص㣿º¯Êýµ÷ÓÃÊÇÔõôʵÏֵģ¿phpº¯ÊýµÄÐÔÄÜÈçºÎ£¬ÓÐʲô
ʹÓý¨Ò飿±¾ÎĽ«´ÓÔÀí³ö·¢½øÐзÖÎö½áºÏʵ¼ÊµÄÐÔÄܲâÊÔ³¢ÊÔ¶ÔÕâЩÎÊÌâ½øÐлشð£¬ÔÚÁ˽âʵÏÖµÄͬʱ¸üºÃµÄ±àдphp³ÌÐò¡£Í¬Ê±Ò²»á¶ÔһЩ³£¼ûµÄphpº¯Êý
½øÐнéÉÜ¡£
phpº¯ÊýµÄ·ÖÀà
ÔÚphpÖУ¬ºáÏò»®·ÖµÄ»°£¬º¯Êý·ÖΪÁ½´óÀࣺ user function(ÄÚÖú¯Êý) ºÍinternal
function£¨ÄÚÖú¯Êý£©¡£Ç°Õß¾ÍÊÇÓû§ÔÚ³ÌÐòÖÐ×Ô¶¨ÒåµÄһЩº¯ÊýºÍ·½·¨£¬ºóÕßÔòÊÇphp±¾ÉíÌṩµÄ¸÷Àà¿âº¯Êý£¨±ÈÈçsprintf¡¢
array_pushµÈ£©¡£Óû§Ò²¿ÉÒÔͨ¹ýÀ©Õ¹µÄ·½·¨À´±àд¿âº¯Êý£¬Õâ¸ö½«ÔÚºóÃæ½éÉÜ¡£¶ÔÓÚuser
function£¬ÓÖ¿ÉÒÔϸ·ÖΪfunction£¨º¯Êý£©ºÍmethod£¨Àà·½·¨£©£¬±¾ÎÄÖн«¾ÍÕâÈýÖÖº¯Êý·Ö±ð½øÐзÖÎöºÍ²âÊÔ¡£
phpº¯ÊýµÄʵÏÖ
Ò»¸öphpº¯Êý×îÖÕÊÇÈçºÎÖ´ÐУ¬Õâ¸öÁ÷³ÌÊÇÔõôÑùµÄÄØ£¿
Òª»Ø´ðÕâ¸öÎÊÌ⣬ÎÒÃÇÏÈÀ´¿´¿´php´úÂëµÄÖ´ÐÐËù¾¹ýµÄÁ÷³Ì¡£
´Óͼ1¿ÉÒÔ¿´µ½£¬phpʵÏÖÁËÒ»¸öµäÐ͵Ķ¯Ì¬ÓïÑÔÖ´Ðйý³Ì£ºÄõ½Ò»¶Î´úÂëºó£¬¾¹ý´Ê·¨½âÎö¡¢Óï·¨½âÎöµÈ½×¶Îºó£¬Ô´³ÌÐò»á±»·Òë³ÉÒ»¸ö¸öÖ¸Áî
(opcodes)£¬È»ºóZENDÐéÄâ»ú˳´ÎÖ´ÐÐÕâЩָÁîÍê³É²Ù×÷¡£Php±¾ÉíÊÇÓÃcʵÏֵģ¬Òò´Ë×îÖÕµ÷ÓõÄÒ²¶¼ÊÇcµÄº¯Êý£¬Êµ¼ÊÉÏ£¬ÎÒÃÇ¿ÉÒÔ°Ñphp¿´
×öÊÇÒ»¸öc¿ª·¢µÄÈí¼þ¡£
ͨ¹ýÉÏÃæÃèÊö²»ÄÑ¿´³ö£¬phpÖк¯ÊýµÄÖ´ÐÐÒ²ÊDZ»·Òë³ÉÁËopcodesÀ´µ÷Óã¬Ã¿´Îº¯Êýµ÷ÓÃʵ¼ÊÉÏÊÇÖ´ÐÐÁËÒ»Ìõ»ò¶àÌõÖ¸Áî¡£
¶ÔÓÚÿһ¸öº¯Êý£¬zend¶¼Í¨¹ýÒÔϵÄÊý¾Ý½á¹¹À´ÃèÊö
typedef union _zend_function { zend_uchar type; /* MUST be the first element of this struct! */ struct { zend_uchar type; /* never used */ char *function_name; zend_class_entry *scope; zend_uint fn_flags; union _zend_function *prototype; zend_uint num_args; zend_uint required_num_args; zend_arg_info *arg_info; zend_bool pass_rest_by_reference; unsigned char return_reference; } common; zend_op_array op_array; zend_internal_function internal_function; } zend_function; typedef struct _zend_function_state { HashTable *function_symbol_table; zend_function *function; void *reserved[ZEND_MAX_RESERVED_RESOURCES]; }
zend_function_state;ÆäÖÐtype±êÃ÷Á˺¯ÊýµÄÀàÐÍ£ºÓû§º¯Êý¡¢ÄÚÖú¯Êý¡¢ÖØÔغ¯Êý¡£CommonÖаüº¬º¯ÊýµÄ»ù±¾ÐÅÏ¢£¬°üÀ¨
º¯ÊýÃû£¬²ÎÊýÐÅÏ¢£¬º¯Êý±êÖ¾£¨ÆÕͨº¯Êý¡¢¾²Ì¬·½·¨¡¢³éÏó·½·¨£©µÈÄÚÈÝ¡£ÁíÍ⣬¶ÔÓÚÓû§º¯Êý£¬»¹ÓÐÒ»¸öº¯Êý·ûºÅ±í£¬¼Ç¼ÁËÄÚ²¿±äÁ¿µÈ£¬Õâ¸ö½«ÔÚºóÃæÏêÊö¡£
Zendά»¤ÁËÒ»¸öÈ«¾Öfunction_table£¬ÕâÊÇÒ»¸ö´óµÄhahs±í¡£º¯Êýµ÷ÓõÄʱºò»áÊ×Ïȸù¾Ýº¯ÊýÃû´Ó±íÖÐÕÒµ½¶ÔÓ¦µÄ
zend_function¡£µ±½øÐк¯Êýµ÷ÓÃʱºò£¬ÐéÄâ»ú»á¸ù¾ÝtypeµÄ²»Í¬¾ö¶¨µ÷Ó÷½·¨£¬ ²»Í¬ÀàÐ͵ĺ¯Êý£¬ÆäÖ´ÐÐÔÀíÊDz»ÏàͬµÄ ¡£ ÄÚÖú¯Êý
ÄÚ
Öú¯Êý£¬Æä±¾ÖÊÉϾÍÊÇÕæÕýµÄcº¯Êý£¬Ã¿Ò»¸öÄÚÖú¯Êý£¬phpÔÚ×îÖÕ±àÒëºó¶¼»áÕ¹¿ª³ÉΪһ¸öÃû½Ðzif_xxxxµÄfunction£¬±ÈÈçÎÒÃdz£¼ûµÄ
sprintf£¬¶ÔÓ¦µ½µ×²ã¾ÍÊÇzif_sprintf¡£ZendÔÚÖ´ÐеÄʱºò£¬Èç¹û·¢ÏÖÊÇÄÚÖú¯Êý£¬ÔòÖ»ÊǼòµ¥µÄ×öÒ»¸öת·¢²Ù×÷¡£
ZendÌṩÁËһϵÁеÄapi¹©µ÷Ó㬰üÀ¨²ÎÊý»ñÈ¡¡¢Êý×é²Ù×÷¡¢ÄÚ´æ·ÖÅäµÈ¡£ÄÚÖú¯ÊýµÄ²ÎÊý»ñÈ¡£¬Í¨¹ýzend_parse_parameters ·½·¨À´ÊµÏÖ£¬¶ÔÓÚÊý×é¡¢×Ö·û´®µÈ²ÎÊý£¬zendʵÏÖµÄÊÇdz¿½±´£¬Òò´ËÕâ¸öЧÂÊÊǺܸߵġ£¿ÉÒÔÕâÑù˵£¬¶ÔÓÚphpÄÚÖú¯Êý£¬ÆäЧÂʺÍÏàÓ¦cº¯Êý¼¸ºõÏàͬ£¬Î¨ Ò»¶àÁËÒ»´Îת·¢µ÷Óá£
ÄÚÖú¯ÊýÔÚphpÖж¼ÊÇͨ¹ýsoµÄ·½Ê½½øÐж¯Ì¬¼ÓÔØ£¬Óû§Ò²¿ÉÒÔ¸ù¾ÝÐèÒª×Ô¼º±àдÏàÓ¦µÄso£¬Ò²¾ÍÊÇÎÒÃdz£ËµµÄÀ©Õ¹¡£ZENDÌṩÁËһϵÁеÄapi¹©À©Õ¹Ê¹ÓÃ
Óû§º¯Êý
ºÍÄÚÖú¯ÊýÏà±È£¬Óû§Í¨¹ýphpʵÏÖµÄ×Ô¶¨Ò庯Êý¾ßÓÐÍêÈ«²»Í¬µÄÖ´Ðйý³ÌºÍʵÏÖÔÀí¡£ÈçÇ°ÎÄËùÊö£¬ÎÒÃÇÖªµÀphp´úÂëÊDZ»·Òë³É
ΪÁËÒ»ÌõÌõopcodeÀ´Ö´Ðеģ¬Óû§º¯ÊýÒ²²»ÀýÍ⣬ʵ¼ÊÖÐÿ¸öº¯Êý¶ÔÓ¦µ½Ò»×éopcode£¬Õâ×éÖ¸Áî±»±£´æÔÚzend_functionÖС£ÓÚÊÇ£¬Óû§
º¯ÊýµÄµ÷ÓÃ×îÖÕ¾ÍÊǶÔÓ¦µ½Ò»×éopcodesµÄÖ´ÐС£
¾Ö²¿±äÁ¿µÄ±£´æ¼°µÝ¹éµÄʵÏÖ
ÎÒÃÇÖªµÀ£¬º¯ÊýµÝ¹éÊÇͨ¹ý¶ÑÕ»À´Íê³ÉµÄ¡£ÔÚphpÖУ¬Ò²ÊÇÀûÓÃÀàËƵķ½·¨À´ÊµÏÖ¡£ZendΪÿ¸öphpº¯Êý·Ö
ÅäÁËÒ»¸ö»î¶¯·ûºÅ±í(active_sym_table)£¬¼Ç¼µ±Ç°º¯ÊýÖÐËùÓоֲ¿±äÁ¿µÄ״̬¡£ËùÓеķûºÅ±íͨ¹ý¶ÑÕ»µÄÐÎʽÀ´Î¬»¤£¬Ã¿µ±Óк¯Êýµ÷ÓõÄʱ
ºò£¬·ÖÅäÒ»¸öеķûºÅ±í²¢ÈëÕ»¡£µ±µ÷ÓýáÊøºóµ±Ç°·ûºÅ±í³öÕ»¡£ÓÉ´ËʵÏÖÁË״̬µÄ±£´æºÍµÝ¹é¡£
¶ÔÓÚÕ»µÄά»¤£¬zendÔÚÕâÀï×öÁËÓÅ»¯¡£Ô¤ÏÈ·ÖÅäÒ»
¸ö³¤¶ÈΪNµÄ¾²Ì¬Êý×éÀ´Ä£Äâ¶ÑÕ»£¬ÕâÖÖͨ¹ý¾²Ì¬Êý×éÀ´Ä£Ä⶯̬Êý¾Ý½á¹¹µÄÊÖ·¨ÔÚÎÒÃÇ×Ô¼ºµÄ³ÌÐòÖÐÒ²¾³£ÓÐʹÓã¬ÕâÖÖ·½Ê½±ÜÃâÁËÿ´Îµ÷ÓôøÀ´µÄÄÚ´æ·ÖÅä¡¢Ïú
»Ù¡£ZENDÖ»ÊÇÔÚº¯Êýµ÷ÓýáÊøʱ½«µ±Ç°Õ»¶¥µÄ·ûºÅ±íÊý¾Ýcleanµô¼´¿É¡£
ÒòΪ¾²Ì¬Êý×鳤¶ÈΪN£¬Ò»µ©º¯Êýµ÷Óòã´Î³¬¹ýN£¬³ÌÐò²»»á³öÏÖÕ»Òç
³ö£¬ÕâÖÖÇé¿öÏÂzend¾Í»á½øÐзûºÅ±íµÄ·ÖÅä¡¢Ïú»Ù£¬Òò´Ë»áµ¼ÖÂÐÔÄÜϽµºÜ¶à¡£ÔÚzendÀïÃ棬NÄ¿Ç°È¡ÖµÊÇ32¡£Òò´Ë£¬ÎÒÃDZàдphp³ÌÐòµÄʱºò£¬º¯Êý
µ÷Óòã´Î×îºÃ²»Òª³¬¹ý32¡£µ±È»£¬Èç¹ûÊÇwebÓ¦Ó㬱¾Éí¿ÉÒÔº¯Êýµ÷Óòã´ÎµÄÉî¶È¡£
²ÎÊýµÄ´«µÝ
ºÍÄÚÖú¯Êýµ÷ÓÃzend_parse_paramsÀ´»ñÈ¡²ÎÊý²»Í¬£¬Óû§º¯ÊýÖвÎÊýµÄ»ñÈ¡ÊÇͨ¹ýÖ¸ÁîÀ´Íê³ÉµÄ¡£º¯ÊýÓм¸¸ö²ÎÊý¾Í¶ÔÓ¦¼¸ÌõÖ¸Áî¡£¾ßÌ嵽ʵÏÖÉϾÍÊÇÆÕͨµÄ±äÁ¿¸³Öµ¡£
ͨ¹ýÉÏÃæµÄ·ÖÎö¿ÉÒÔ¿´³ö£¬ºÍÄÚÖú¯ÊýÏà±È£¬ÓÉÓÚÊÇ×Ô¼ºÎ¬»¤¶ÑÕ»±í£¬¶øÇÒÿÌõÖ¸ÁîµÄÖ´ÐÐÒ²ÊÇÒ»¸öcº¯Êý£¬Óû§º¯ÊýµÄÐÔÄÜÏà¶Ô»á²îºÜ¶à£¬ºóÃæ»áÓоßÌåµÄ¶Ô±È·ÖÎö¡£Òò´Ë£¬Èç¹ûÒ»¸ö¹¦ÄÜÓжÔÓ¦phpÄÚÖú¯ÊýʵÏֵľ¡Á¿²»Òª×Ô¼ºÖØÐÂдº¯ÊýȥʵÏÖ¡£
Àà·½·¨
Àà·½·¨ÆäÖ´ÐÐÔÀíºÍÓû§º¯ÊýÊÇÏàͬµÄ£¬Ò²ÊÇ·Òë³Éopcodes˳´Îµ÷Óá£ÀàµÄʵÏÖ£¬zendÓÃÒ»¸öÊý¾Ý½á¹¹zend_class_entryÀ´ÊµÏÖ£¬ÀïÃæ±£´æÁËÀàÏà¹ØµÄһЩ»ù±¾ÐÅÏ¢¡£Õâ¸öentryÊÇÔÚphp±àÒëµÄʱºò¾ÍÒѾ´¦ÀíÍê³É¡£
ÔÚzend_functionµÄcommonÖУ¬ÓÐÒ»¸ö³ÉÔ±½Ð×öscope£¬ÆäÖ¸ÏòµÄ¾ÍÊǵ±Ç°·½·¨¶ÔÓ¦ÀàµÄzend_class_entry¡£¹ØÓÚ phpÖÐÃæÏò¶ÔÏóµÄʵÏÖ£¬ÕâÀï¾Í²»ÔÚ×ö¸üÏêϸµÄ½éÉÜ£¬½ñºó½«×¨ÃÅдһƪÎÄÕÂÀ´ÏêÊöphpÖÐÃæÏò¶ÔÏóµÄʵÏÖÔÀí¡£¾Íº¯ÊýÕâÒ»¿éÀ´Ëµ£¬methodʵÏÖÔÀíºÍ functionÍêÈ«Ïàͬ£¬ÀíÂÛÉÏÆäÐÔÄÜÒ²²î²»¶à£¬ºóÃæÎÒÃǽ«×öÏêϸµÄÐÔÄܶԱȡ£
ÐÔÄܶԱÈ
º¯ÊýÃû³¤¶È¶ÔÐÔÄܵÄÓ°Ïì
²âÊÔ·½·¨
¶ÔÃû×Ö³¤¶ÈΪ1¡¢2¡¢4¡¢8¡¢16µÄº¯Êý½øÐбȽϣ¬²âÊԱȽÏËüÃÇÿÃë¿ÉÖ´ÐдÎÊý£¬È·¶¨º¯ÊýÃû³¤¶È¶ÔÐÔÄܵÄÓ°Ïì
²âÊÔ½á¹ûÈçÏÂͼ
½á¹û·ÖÎö
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬º¯ÊýÃûµÄ³¤¶È¶ÔÐÔÄÜ»¹ÊÇ»áÓÐÒ»¶¨µÄÓ°Ïì¡£Ò»¸ö³¤¶ÈΪ1µÄº¯ÊýºÍ³¤¶ÈΪ16µÄ ¿Õº¯Êýµ÷ÓÃ
£¬ÆäÐÔÄܲîÁË1±¶¡£·ÖÎöÒ»ÏÂÔ´Âë²»ÄÑÕÒµ½ÔÒò£¬ÈçÇ°ÃæÐðÊöËù˵£¬º¯Êýµ÷ÓõÄʱºòzend»áÏÈÔÚÒ»¸öÈ«¾ÖµÄfuntion_tableÖÐͨ¹ýº¯ÊýÃû²éѯÏà¹Ø
ÐÅÏ¢£¬function_tableÊÇÒ»¸ö¹þÏ£±í¡£±ØÈ»µÄ£¬Ãû×ÖÔ½³¤²éѯËùÐèÒªµÄʱ¼ä¾ÍÔ½¶à¡£
Òò´Ë£¬ÔÚʵ¼Ê±àд³ÌÐòµÄʱºò£¬¶Ô¶à´Îµ÷Óõĺ¯Êý£¬Ãû×Ö½¨Ò鲻Ҫ̫³¤
ËäÈ»º¯ÊýÃû³¤¶È¶ÔÐÔÄÜÓÐÒ»¶¨Ó°Ï죬µ«¾ßÌåÓжà´óÄØ£¿Õâ¸öÎÊÌâÓ¦¸Ã»¹ÊÇÐèÒª½áºÏʵ¼ÊÇé¿öÀ´¿¼ÂÇ£¬Èç¹ûÒ»¸öº¯Êý±¾Éí±È½Ï¸´ÔӵĻ°£¬ÄÇô¶ÔÕûÌåµÄÐÔÄÜÓ°Ïì²¢²»´ó¡£
Ò»¸ö½¨ÒéÊǶÔÓÚÄÇЩ»áµ÷Óúܶà´Î£¬±¾Éí¹¦ÄÜÓֱȽϼòµ¥µÄº¯Êý£¬¿ÉÒÔÊʵ±È¡Ò»Ð©ÑÔ¼òÒâêàµÄÃû×Ö¡£
º¯Êý¸öÊý¶ÔÐÔÄܵÄÓ°Ïì
²âÊÔ·½·¨
ÔÚÒÔÏÂÈýÖÖ»·¾³Ï½øÐк¯Êýµ÷ÓòâÊÔ£¬·ÖÎö½á¹û£º1.³ÌÐò½ö°üº¬1¸öº¯Êý 2.³ÌÐò°üº¬100¸öº¯Êý 3.³ÌÐò°üº¬1000¸öº¯Êý¡£
²âÊÔÕâÈýÖÖÇé¿öÏÂÿÃëËùÄܵ÷Óõĺ¯Êý´ÎÊý
²âÊÔ½á¹ûÈçÏÂͼ
½á¹û·ÖÎö
´Ó²âÊÔ½á¹û¿ÉÒÔ¿´³ö£¬ÕâÈýÖÖÇé¿öÏÂÐÔÄܼ¸ºõÏàͬ£¬º¯Êý¸öÊýÔö¼ÓʱÐÔÄÜϽµÎ¢ºõÆä΢£¬¿ÉÒÔºöÂÔ¡£
´ÓʵÏÖÔÀí·ÖÎö£¬¼¸ÖÖʵÏÖÏÂΨһµÄÇø±ðÔÚÓÚº¯Êý»ñÈ¡µÄ²¿·Ö¡£ÈçÇ°ÎÄËùÊö£¬ËùÓеĺ¯Êý¶¼·ÅÔÚÒ»¸öhash±íÖУ¬ÔÚ²»Í¬¸öÊýϲéÕÒЧÂʶ¼Ó¦¸Ã»¹ÊǽӽüÓÚO(1)£¬ËùÒÔÐÔÄܲî¾à²»´ó¡£
²»Í¬ÀàÐͺ¯Êýµ÷ÓÃÏûºÄ
²âÊÔ·½·¨
Ñ¡È¡Óû§º¯Êý¡¢Àà·½·¨¡¢¾²Ì¬·½·¨¡¢ÄÚÖú¯Êý¸÷Ò»ÖÖ£¬º¯Êý±¾Éí²»×öÈκÎÊÂÇ飬ֱ½Ó·µ»Ø£¬Ö÷Òª²âÊÔ¿Õº¯Êýµ÷ÓõÄÏûºÄ¡£²âÊÔ½á¹ûΪÿÃë¿ÉÖ´ÐдÎÊý
²âÊÔÖÐΪȥ³ýÆäËûÓ°Ï죬ËùÓк¯ÊýÃû×Ö³¤¶ÈÏàͬ
²âÊÔ½á¹ûÈçÏÂͼ
½á¹û·ÖÎö
ͨ¹ý²âÊÔ½á¹û¿ÉÒÔ¿´µ½£¬¶ÔÓÚÓû§×Ô¼º±àдµÄphpº¯Êý£¬²»¹ÜÊÇÄÄÖÖÀàÐÍ£¬ÆäЧÂÊÊDz¶àµÄ£¬¾ùÔÚ280w/s×óÓÒ¡£ÈçÎÒ
ÃÇÔ¤ÆÚ£¬¼´Ê¹ÊÇ¿Õµ÷£¬ÄÚÖú¯ÊýÆäЧÂÊÒ²Òª¸ßºÜ¶à£¬´ïµ½780w/s£¬ÊÇÇ°ÕßÊÇ3±¶¡£¿É¼û£¬ÄÚÖú¯Êýµ÷ÓõĿªÏú»¹ÊÇÔ¶µÍÓÚÓû§º¯Êý¡£´ÓÇ°ÃæÔÀí·ÖÎö¿ÉÖªÖ÷Òª
²î¾àÔÚÓÚÓû§º¯Êýµ÷ÓÃʱ³õʼ»¯·ûºÅ±í¡¢½ÓÊÕ²ÎÊýµÈ²Ù×÷¡£
ÄÚÖú¯ÊýºÍÓû§º¯ÊýÐÔÄܶԱÈ
²âÊÔ·½·¨
ÄÚÖú¯ÊýºÍÓû§º¯ÊýµÄÐÔÄܶԱȣ¬ÕâÀïÎÒÃÇÑ¡È¡¼¸¸ö³£Óõĺ¯Êý£¬È»ºóÓÃphpʵÏÖÏàͬ¹¦Äܵĺ¯Êý½øÐÐÒ»ÏÂÐÔÄܶԱȡ£
²âÊÔÖУ¬ÎÒÃÇÑ¡È¡×Ö·û´®¡¢Êýѧ¡¢Êý×éÖи÷Ò»¸öµäÐͽøÐжԱȣ¬Õ⼸¸öº¯Êý·Ö±ðÊÇ×Ö·û´®½ØÈ¡(substr)¡¢10½øÖÆת2½øÖÆ(decbin)¡¢Çó×îСֵ(min)ºÍ·µ»ØÊý×éÖеÄËùÒÔkey(array_keys)¡£
²âÊÔ½á¹ûÈçÏÂͼ
´Ó²âÊÔ½á¹û¿ÉÒÔ¿´³ö£¬ÈçÎÒÃÇÔ¤ÆÚ£¬ÄÚÖú¯ÊýÔÚ×ÜÌåÐÔÄÜÉÏÔ¶¸ßÓÚÆÕͨÓû§º¯Êý¡£ÓÈÆä¶ÔÓÚÉæ¼°µ½×Ö·û´®Àà²Ù×÷µÄº¯Êý£¬²î¾à´ïµ½ÁË1¸öÊýÁ¿¼¶¡£Òò´Ë£¬º¯ÊýʹÓõÄÒ»¸öÔÔò¾ÍÊÇÈç¹ûij¹¦ÄÜÓÐÏàÓ¦µÄÄÚÖú¯Êý£¬¾¡Á¿Ê¹ÓÃËü¶ø²»ÊÇ×Ô¼º±àдphpº¯Êý¡£
¶ÔÓÚһЩÉæ¼°µ½´óÁ¿×Ö·û´®²Ù×÷µÄ¹¦ÄÜ£¬ÎªÌá¸ßÐÔÄÜ£¬¿ÉÒÔ¿¼ÂÇÓÃÀ©Õ¹À´ÊµÏÖ¡£±ÈÈç³£¼ûµÄ¸»Îı¾¹ýÂ˵ȡ£
ºÍCº¯ÊýÐÔÄܶԱÈ
²âÊÔ·½·¨
ÎÒÃÇÑ¡È¡×Ö·û´®²Ù×÷ºÍËãÊõÔËËã¸÷3ÖÖº¯Êý½øÐбȶԣ¬phpÓÃÀ©Õ¹ÊµÏÖ¡£ÈýÖÖº¯ÊýÊǼòµ¥µÄÒ»´ÎËã·¨ÔËËã¡¢×Ö·û´®±È½ÏºÍ¶à´ÎµÄËã·¨ÔËËã¡£
³ýÁ˱¾ÉíµÄÁ½ÀຯÊýÍ⣬»¹»á²âÊÔ½«º¯Êý¿Õµ÷¿ªÏúÈ¥µôºóµÄÐÔÄÜ£¬Ò»·½Ãæ±È¶ÔÒ»ÏÂÁ½ÖÖº¯Êý£¨cºÍphpÄÚÖ㩱¾ÉíµÄÐÔÄܲîÒ죬ÁíÍâ¾ÍÊDzàÃæÓ¡Ö¤¿Õµ÷º¯ÊýµÄÏûºÄ
²âÊÔµãΪִÐÐ10w´Î²Ù×÷µÄʱ¼äÏûºÄ
²âÊÔ½á¹ûÈçÏÂͼ
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ