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

40¸ö¼£Ïó±íÃ÷Ä㻹ÊÇPHP²ËÄñ

ËäÈ»ÏÂÃæµÄ¶«Î÷ÊÇÕë¶ÔPHP¿ª·¢ÈËԱ˵µÄ£¬ÆäʵºÜ¶àÔ­Ôò¶¼ÊÇͨÓõģ¬ASP.NET,JSP¿ª·¢ÈËÔ±Ò²Ò»Ñù¿ÉÒÔ²ÎÕÕ£¡ ÌùÔÚÕâÀïºÍ´ó¼Ò¹²Ã㣡
ÎÄ×÷ÕߣºReinhold Weber
Ô­ÎÄÁ´½Ó£º40 signs you really are a lousy PHP programmer
ÒëÕߣºdavidkoree
40¸ö¼£Ïó±íÃ÷Ä㻹ÊÇPHP²ËÄñ
ÎÒÔ¸Òâ°Ñ±¾ÎĹéÈëÎҵē±à³ÌôÜÊ”ϵÁС£¾¡¹ÜÔÚÕý¹æ´óѧ¿Î³ÌÖУ¬½Ó´¥µ½Èí¼þ¹¤³Ì¡¢ÆóÒµ¼¶Èí¼þ¼Ü¹¹ºÍÊý¾Ý¿âÉè¼Æ£¬µ«ÎÒ»¹ÊÇʱ²»Ê±µØÌå»áµ½ÏÂÊöÊÂʵ´ø¸øÎҵē×ï¶ñ”¸Ð£¬µ±È»£¬¶¼ÊÇÎÒµÄÖ÷¹Û¸ÐÊÜ£¬²¢ÇÒÃæÏòEclipse£º
ÄãÊÇPHP²ËÄñ£¬Èç¹ûÄ㣺
1. ²»»áÀûÓÃÈçphpDocÕâÑùµÄ¹¤¾ßÀ´Ç¡µ±µØ×¢ÊÍÄãµÄ´úÂë
2. ¶ÔÓÅÐãµÄ¼¯³É¿ª·¢»·¾³ÈçZend Studio»òEclipse PDTÊÓ¶ø²»¼û
3. ´ÓδÓùýÈκÎÐÎʽµÄ°æ±¾¿ØÖÆϵͳ£¬ÈçSubclipse
4. ²»²ÉÓÃijÖÖ±àÂëÓëÃüÃû±ê×¼£¬ÒÔ¼°Í¨ÓÃÔ¼¶¨£¬²»ÄÜÔÚÏîÄ¿¿ª·¢ÖÜÆÚÀï¹á³¹Âäʵ
5. ²»Ê¹ÓÃͳһ¿ª·¢·½Ê½
6. ²»×ª»»£¨»ò£©Ò²²»Ñé֤ijЩÊäÈë»òSQL²éѯ´®£¨Òë×¢£º²Î¿¼PHPÏà¹Øº¯Êý£©
7. ²»ÔÚ±àÂë֮ǰ³¹µ×¹æ»®ÄãµÄ³ÌÐò
8. ²»Ê¹ÓòâÊÔÇý¶¯¿ª·¢
9. ²»ÔÚ´íÎó¿ªÆô״̬ϽøÐбàÂëºÍ²âÊÔ£¨Òë×¢£º²Î¿¼PHPº¯Êýerror_reporting£©
10. ¶Ôµ÷ÊÔÆ÷µÄºÃ´¦ÊÓ¶ø²»¼û
11. ²»Öع¹ÄãµÄ´úÂë
12. ²»Ê¹ÓÃÀàËÆMVCģʽ°Ñ³ÌÐòµÄ²»Í¬²ã´Î»®·Ö¿ª
13. ²»ÖªµÀÕâЩ¸ÅÄKISS, DRY, MVC, OOP, REST
14. ²»ÓÃreturn¶øÊÇÖ±½ÓÔÚÄãµÄº¯Êý»òÀàÖÐÊä³ö£¨echo/print£©ÄÚÈÝ
15. ¶Ôµ¥Ôª²âÊÔ»òͨÓòâÊÔµÄÓŵãÊÓ¶ø²»¼û
16. ×ÜÊÇ·µ»ØÓ²±àÂëµÄHTML£¬È´²»·µ»Ø´¿´âµÄÊý¾Ý£¬×Ö·û´®£¬»ò¶ÔÏó
17. ×ÜÊǶԓÏûÏ¢”ºÍ“ÅäÖòÎÊý”½øÐÐÓ²±àÂë
18. ²»¶ÔSQL²éѯÓï¾ä×öÓÅ»¯
19. ²»Ê¹ÓÃ__autoload£¨Òë×¢£º²Î¿¼PHPÊÖ²áÏà¹ØÃèÊö£©
20. ²»ÔÊÐíÖÇÄÜ´íÎó´¦Àí£¨Òë×¢£º²Î¿¼PEARµÄErrorStack£©
21. ʹÓÃ$_GETÌæ´ú$_POSTÀ´×ö¾ßÓÐÆÆ»µÐԵĴ«µÝ²Ù×÷
22. ²»ÖªµÀÔõôÀûÓÃÕýÔò±í´ïʽ
23. ´ÓδÌý˵¹ýSQL×¢Èë»ò¿çÕ¾½Å±¾
24. ²»ÔÊÐí¼òÒ×ÅäÖã¬Ò²²»ÔÊÐíÀàµÄ¹¹Ô캯Êý½ÓÊܲÎÊý´«µÝ¶øºóÖ´ÐÐset/get·½·¨£¬»òÔËÐÐʱµÄ³£Á¿¶¨Òå
25. ²»Àí½âÃæÏò¶ÔÏó±à³Ì£¨OOP£©µÄÓÅÊƺÍÁÓÊÆ
26. ²»ÊÓÇéÐδóС¶øÀÄÓÃOOP
27. ×ÔÈÏΪʵÏֿɸ´ÓõÄÈí¼þÒ»¶¨µÈÓÚ/ÐèÒªÈÃÄãµÄ´úÂë×ñÑ­OOP
28. ²»ÀûÓÃÖÇÄÜȱʡֵ
29. ûÓе¥Ò»µÄÅäÖÃÎļþ
30. ²»Ï뱩¶ÎļþÔ´Â룬ȴÓÃ.incºó׺ÃûÈ¡´úÁË.php
31. ²»Ê¹ÓÃÊý¾Ý¿â³éÏó²ã
32. ²»Äܱ£³ÖDRY×÷·ç£¬¼´²»Öظ´×Ô¼º£¬Èç¹ûÄã×ÜÊÇÔÚ¸´ÖÆÕ³ÌùһЩ¶«Î÷£¬ËµÃ÷ÄãÉè¼ÆµÃºÜ²î¾¢
33. ûÓÐʵÏÖÈÃÒ»¸öº¯Êý/Àà/


Ïà¹ØÎĵµ£º

PHP $_SERVERѧϰ

³õѧPHP,¶Ô$_SERVERÕâ¸ö¶«Î÷ºÜ¸ÐÐËȤ.ÔÚÍøÉÏÕÒÁËN³¤Ê±¼ä.ÊÇÎÒÖÇÉÌÓÐÎÊÌâ? »¹ÊÇ?
ºÇºÇ.¸É´à²»Èç×Ô¼ºÒ»¸öÒ»¸ö¿´...
ÎÒµÄIDE»·¾³: XmappÊ¡×Å×Ô¼ºÅäÖÃÁË...
//¹¦ÄÜ:´òÓ¡$_SERVER->Array();
/*PHP Code Star*/
foreach ($_SERVER as $key => $value)
{
 echo $key.":".$value."<br>";
}
/*PHP Code En ......

Óà PHP ¶ÁÈ¡ÎļþµÄÕýÈ··½·¨


 
Á˽âÈçºÎʹÓà PHP µÄ¸÷ÖÖÎļþº¯Êý¡£²é¿´ÖîÈç fopen¡¢fclose ºÍ feof Ö®ÀàµÄ»ù±¾Îļþº¯Êý£»Á˽âÖîÈç fgets¡¢fgetss ºÍ fscanf Ö®ÀàµÄ¶ÁÈ¡º¯Êý¡£²¢ÇÒ·¢ÏÖÓÃÒ»Á½ÐдúÂë´¦ÀíÕû¸öÎļþµÄº¯Êý¡£
ÈÃÎÒÃÇËãÒ»ËãÓжàÉÙÖÖ·½·¨
´¦ÀíÖîÈç PHP Ö®ÀàµÄÏÖ´ú±à³ÌÓïÑÔµÄÀÖȤ֮һ¾ÍÊÇÓдóÁ¿µÄÑ¡Ïî¿ÉÓá£PHP ¿ÉÒÔÇáËɵØÓ®µÃ Perl µÄ ......

php×Ö·û´®º¯ÊýÓ¦Ó×—¾­µä

  PHP: echo substr("1234567", 1, 3);
ºÍ PHP: echo substr(123456,1, 3);
ÊÇÒ»ÑùµÄ
¶¨Òå
Ò»°ãÓÃË«ÒýºÅ»òµ¥ÒýºÅ±êʶһ¸ö×Ö·û´®¡£±ÈÈç PHP: $str = "i love u";
$str = 'i love u';
ËüÕßÁ½ÕßÊÇÓÐһЩÇø±ðµÄ¡£ºóÕß½«Ò»Çе¥ÒýºÅµÄÄÚÈݶ¼»áµ±×÷×Ö·û´¦Àí£»Ç°ÕßÔ ......

php±àÂëheaderÖвÎÊý˵Ã÷

ÍøÒ³µÄ»º´æÊÇÓÉHTTPÏûϢͷÖеġ°Cache-control¡±À´¿ØÖƵģ¬³£¼ûµÄÈ¡ÖµÓÐprivate¡¢no-cache¡¢max-age¡¢must-revalidateµÈ£¬Ä¬ÈÏΪprivate¡£Æä×÷Óøù¾Ý²»Í¬µÄÖØÐÂä¯ÀÀ·½Ê½·ÖΪÒÔϼ¸ÖÖÇé¿ö£º £¨1£© ´ò¿ªÐ´°¿Ú
ֵΪprivate¡¢no-cache¡¢must-revalidate£¬ÄÇô´ò¿ªÐ´°¿Ú·ÃÎÊʱ¶¼»áÖØзÃÎÊ·þÎñÆ÷¡£
¶øÈç¹ûÖ¸¶¨ÁËmax ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ