Ìá¸ßPHP±à³ÌЧÂʵÄ53¸öÒªµã
Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑÑ°±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô ×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ¡°º¯Êý¡±£¨Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ£©¡£
1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿¶¨Òå³Éstatic£¬ËüµÄËٶȻáÌáÉý½«½ü4±¶¡£
2¡¢$row[¡¯id¡¯] µÄËÙ¶ÈÊÇ$row[id]µÄ7±¶¡£
3¡¢echo ±È print ¿ì£¬²¢ÇÒʹÓÃechoµÄ¶àÖزÎÊý£¨Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã£©´úÌæ×Ö·û´®Á¬½Ó£¬±ÈÈçecho $str1,$str2¡£
4¡¢ÔÚÖ´ÐÐforÑ»·Ö®Ç°È·¶¨×î´óÑ»·Êý£¬²»ÒªÃ¿Ñ»·Ò»´Î¶¼¼ÆËã×î´óÖµ£¬×îºÃÔËÓÃforeach´úÌæ¡£
5¡¢×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6¡¢¾¡Á¿±ÜÃâʹÓÃ__get£¬__set£¬__autoload¡£
7¡¢require_once()´ú¼Û°º¹ó¡£
8¡¢includeÎļþʱ¾¡Á¿Ê¹Óþø¶Ô·¾¶£¬ÒòΪËü±ÜÃâÁËPHPÈ¥include_pathÀï²éÕÒÎļþµÄËٶȣ¬½âÎö²Ù×÷ϵͳ·¾¶ËùÐèµÄʱ¼ä»á¸üÉÙ¡£
9¡¢Èç¹ûÄãÏëÖªµÀ½Å±¾¿ªÊ¼Ö´ÐУ¨Òë×¢£º¼´·þÎñÆ÷¶ËÊÕµ½¿Í»§¶ËÇëÇ󣩵Äʱ¿Ì£¬Ê¹ÓÃ$_SERVER[¡®REQUEST_TIME¡¯]ÒªºÃÓÚtime()¡£
10¡¢º¯Êý´úÌæÕýÔò±í´ïʽÍê³ÉÏàͬ¹¦ÄÜ¡£
11¡¢str_replaceº¯Êý±Èpreg_replaceº¯Êý¿ì£¬µ«strtrº¯ÊýµÄЧÂÊÊÇstr_replaceº¯ÊýµÄËı¶¡£
12¡¢Èç¹ûÒ»¸ö×Ö·û´®Ìæ»»º¯Êý£¬¿É½ÓÊÜÊý×é»ò×Ö·û×÷Ϊ²ÎÊý£¬²¢ÇÒ²ÎÊý³¤¶È²»Ì«³¤£¬ÄÇô¿ÉÒÔ¿¼ÂǶîÍâдһ¶ÎÌæ»»´úÂ룬ʹµÃÿ´Î´«µÝ²ÎÊýÊÇÒ»¸ö×Ö·û£¬¶ø²»ÊÇֻдһÐдúÂë½ÓÊÜÊý×é×÷Ϊ²éѯºÍÌæ»»µÄ²ÎÊý¡£
13¡¢Ê¹ÓÃÑ¡Ôñ·ÖÖ§Óï¾ä£¨Òë×¢£º¼´switch case£©ºÃÓÚʹÓöà¸öif£¬else ifÓï¾ä¡£
14¡¢ÓÃ@ÆÁ±Î´íÎóÏûÏ¢µÄ×ö·¨·Ç³£µÍЧ£¬¼«ÆäµÍЧ¡£
15¡¢´ò¿ªapacheµÄmod_deflateÄ£¿é£¬¿ÉÒÔÌá¸ßÍøÒ³µÄä¯ÀÀËٶȡ£
16¡¢Êý¾Ý¿âÁ¬½Óµ±Ê¹ÓÃÍê±ÏʱӦ¹Øµô£¬²»ÒªÓó¤Á¬½Ó¡£
17¡¢´íÎóÏûÏ¢´ú¼Û°º¹ó¡£
18¡¢ÔÚ·½·¨ÖеÝÔö¾Ö²¿±äÁ¿£¬ËÙ¶ÈÊÇ×î¿ìµÄ¡£¼¸ºõÓëÔÚº¯ÊýÖе÷Óþֲ¿±äÁ¿µÄËÙ¶ÈÏ൱¡£
19¡¢µÝÔöÒ»¸öÈ«¾Ö±äÁ¿Òª±ÈµÝÔöÒ»¸ö¾Ö²¿±äÁ¿Âý2±¶¡£
20¡¢µÝÔöÒ»¸ö¶ÔÏóÊôÐÔ£¨È磺$this->prop++£©Òª±ÈµÝÔöÒ»¸ö¾Ö²¿±äÁ¿Âý3±¶¡£21¡¢µÝÔöÒ»¸öδԤ¶¨ÒåµÄ¾Ö²¿±äÁ¿Òª±ÈµÝÔöÒ»¸öÔ¤¶¨ÒåµÄ¾Ö²¿±äÁ¿Âý9ÖÁ10±¶¡£
22¡¢½ö¶¨ÒåÒ»¸ö¾Ö²¿±äÁ¿¶øûÔÚº¯ÊýÖе÷ÓÃËü£¬Í¬Ñù»á¼õÂýËٶȣ¨Æä³Ì¶ÈÏ൱ÓÚµÝÔöÒ»¸ö¾Ö²¿±äÁ¿£©¡£PHP´ó¸Å»á¼ì²é¿´ÊÇ·ñ´æÔÚÈ«¾Ö±äÁ¿¡£
23¡¢·½·¨µ÷Óÿ´À´ÓëÀàÖж¨ÒåµÄ·½·¨µÄÊýÁ¿Î޹أ¬ÒòΪÎÒ£¨ÔÚ²âÊÔ·½·¨Ö®Ç°ºÍÖ®ºó¶¼£©Ìí¼ÓÁË10¸ö·½·¨£¬µ«ÐÔÄÜÉÏûÓб仯¡£
24¡¢ÅÉÉúÀàÖеķ½·¨ÔËÐÐÆðÀ´Òª¿ìÓÚÔÚ»ùÀàÖж¨ÒåµÄͬÑùµÄ·½·¨¡£
25¡¢µ÷ÓôøÓÐÒ»¸ö²ÎÊýµÄ¿Õº¯Êý£¬Æ仨·ÑµÄʱ¼äÏ൱ÓÚÖ´ÐÐ7ÖÁ8´ÎµÄ¾Ö²¿±äÁ¿µÝÔö²Ù×÷¡£ÀàËƵķ½·¨µ÷ÓÃËù»¨·ÑµÄʱ¼ä½Ó½üÓÚ15´ÎµÄ¾Ö²¿±äÁ¿µÝÔö²Ù×÷¡£
26¡¢Apache½âÎöÒ»¸öPHP½Å±¾µÄʱ¼äÒª±È½âÎöÒ»¸ö¾²Ì¬HTMLÒ³ÃæÂý2ÖÁ10±¶¡£¾¡Á¿¶àÓþ²Ì¬HTMLÒ³Ã棬ÉÙÓýű¾¡£
27¡¢³ý·Ç½Å±¾¿ÉÒÔ»º´æ£¬·ñÔòÿ´Îµ÷ÓÃʱ¶¼»áÖØбàÒëÒ»´Î¡£ÒýÈëÒ»Ì×PHP»º´æ»úÖÆͨ³£¿ÉÒÔÌáÉý25%ÖÁ100%µÄÐÔÄÜ£¬ÒÔÃâ³ý±àÒ뿪Ïú¡£
28¡¢¾¡Á¿×ö»º´æ£¬¿ÉʹÓÃmemcached¡£memcachedÊÇÒ»¿î¸ßÐÔÄܵÄÄÚ´æ¶ÔÏ󻺴æϵͳ£¬¿ÉÓÃÀ´¼ÓËÙ¶¯Ì¬WebÓ¦ÓóÌÐò£¬¼õÇáÊý¾Ý¿â¸ºÔØ¡£¶ÔÔËËãÂë (OP code)µÄ»º´æºÜÓÐÓã¬Ê¹µÃ½Å±¾²»±ØΪÿ¸öÇëÇó×öÖØбàÒë¡£
29¡¢µ±²Ù×÷×Ö·û´®²¢ÐèÒª¼ìÑéÆ䳤¶ÈÊÇ·ñÂú×ãijÖÖÒªÇóʱ£¬ÄãÏ뵱ȻµØ»áʹÓÃstrlen()º¯Êý¡£´Ëº¯ÊýÖ´ÐÐÆðÀ´Ï൱¿ì£¬ÒòΪËü²»×öÈκμÆË㣬ֻ·µ
»ØÔÚzval
½á¹¹£¨CµÄÄÚÖÃÊý¾Ý½á¹¹£¬ÓÃÓÚ´æ´¢PHP±äÁ¿£©Öд洢µÄÒÑÖª×Ö·û´®³¤¶È¡£µ«ÊÇ£¬ÓÉÓÚstrlen()ÊǺ¯Êý£¬¶à¶àÉÙÉÙ»áÓÐЩÂý£¬ÒòΪº¯Êýµ÷ÓûᾹýÖî¶à²½
Ö裬Èç×ÖĸСд»¯£¨Òë×¢£ºÖ¸º¯ÊýÃûСд»¯£¬PHP²»Çø·Öº¯ÊýÃû´óСд£©¡¢¹þÏ£²éÕÒ£¬»á¸úËæ±»µ÷Óõĺ¯ÊýÒ»ÆðÖ´ÐС£ÔÚijЩÇé¿öÏ£¬Äã¿ÉÒÔʹÓÃisset()
¼¼ÇɼÓËÙÖ´ÐÐÄãµÄ´úÂë¡£
£¨¾ÙÀýÈçÏ£©
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿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¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ