PHPÂëÅ©½ø»¯Ê·6
1.PHP±à³ÌÄÜÁ¦
2.MysqlÄÜÁ¦
A.Á˽⣺֪µÀʹÓÃPHPÁ´½ÓÊý¾Ý¿â£»¶®µÃһЩ¼òµ¥µÄSQL;½¨Á¢Ò»Ð©¼òµ¥µÄË÷Òý£»¶®µÃÓù¤¾ß¼òµ¥²Ù×÷Ò»ÏÂÊý¾Ý¿â£¨Ôöɾ¸Ä²éÊý¾Ý±í½á¹¹£©¡£
B.ÊìϤ£º¶®µÃÔÚ¿ª·¢Ó¦ÓÃÉÏÉè¼ÆÊý¾Ý¿â£¬½¨Á¢Ò»Ð©ÓÐЧµÄË÷Òý£¬ÓÃexplain·ÖÎöSQLÐÔÄÜ£¬Ñ¹Á¦²âÊԵȵȡ£
C.ºÜÊìϤ£ºÉîÈëÁ˽âÊý¾Ý¿âË÷Òý£¬´æ´¢ÒýÇæÔÀíÒÔ¼°ÔËÐлúÖÆ£¬ÄÜÓÐЧµØ¹¹½¨¸ßÐÔÄÜ¿ÉÀ©Õ¹µÄÊý¾Ý½á¹¹/¼Ü¹¹£¬ÓÐЧµØÓÅ»¯Êý¾Ý¿âÐÔÄÜÅäÖò¢¼ÓÒÔµ÷ÊÔ£¬·ÖÎöÊý¾Ý¿âÔËÐÐ״̬¡£
D.¾«Í¨£º¾ß±¸ÒÔÉÏËùÓÐÄÜÁ¦Í¬Ê±£¬ÓжàÄê¸ß¸ºÔØ·Ö²¼Ê½»·¾³ÏÂÓÅ»¯¹ÜÀíµÄ¾Ñé¡£
ÓÐÈË˵£º70%µÄPHPer´¦ÔÚÁ˽â½×¶Î£¬25%´¦ÓÚÊìϤ½×¶Î£¬>4%ºÜÊìϤ£¬¾«Í¨µÄÈË»ù±¾¾Í²»ÊÇphperÁË¡£70%Õâ¸öȺÌå×îÈÝÒ׺öÊÓMySQL£¬ÒÔΪMySQLÖ»ÊǼòµ¥µÄ´æ´¢Ã½½é£¬Ã»ÓÐÓÅ»¯Òâʶ£¬ÈÏΪ¼Ó¸öÄÚ´æ¡¢CPU¾ÍÄܽâ¾öÎÊÌâ¡£µäÐÍʼþ£ºjoin¡¢order by¡¢group byµÈÓï¾äÐÔÄÜÒ»ËúºýÍ¿£¬Êý¾Ý¿â¸ù±¾Ã»ÓÐÉè¼Æ(½öÏÞÓÚ²ð³ÉÒ»¸öÖ÷±í£¬N¸ö¸½±íµÈ)£¬¸ã²»Çå×Ö¶ÎÀàÐͼ°×÷Óã¬Åöµ½´ó±íµÄ¸´ÔÓ²éѯ¾ÍûÕÞ¡£20%Õâ¸öȺÌåµÄÈËÖ»ÊÇMySQLÔËÐлúÖÆÀí½â²»Í¸³¹£¬¶ÔÓ°ÏìMySQLÐÔÄܵĹؽ¡ÒòËØ°ÑÎÕ²»Ã÷È·£¬²»ÊìÁ·¡£µäÐÍʼþ£ºÊì¶ÁÊֲᣬµ«Ëµ²»ÇåË÷ÒýÔÀí£¬²»ÖªµÀ¶þ²æÊ÷¡¢HASHµÈËã·¨¶ÔÓÚÊý¾Ý¿âµÄ×÷Óá£4%µÄȺÌåÒѾ»ù±¾¿ÉÒÔʤÈÎDBAµÄÖ°ÄÜ¡£
3.OOPÄÜÁ¦
A.Á˽⣺Á˽â±äÁ¿µÄ×÷ÓÃÓò£¬ÀàÐͼ°ÆäÒâÒ壬Á˽â¼Ì³Ð»úÖƵȣ¬¶®µÃ¸´Ó㬷â×°¸ÅÄî¡£
B.ÊìϤ£ºÊìÁ·Ó¦Óýӿڣ¬³éÏóµÈ¼¼Êõ»ìºÏ¿ª·¢³ÌÐò£¬²¢Àí½âÆäÖк¬Ò壬һ°ãÑо¿¹ýJAVA¡£
C.ºÜÊìϤ£ºÓйýOOP¼Ü¹¹Éè¼Æ¾Ñ飬ÊìϤÉè¼Æģʽ£¬UML,ÊìϤPHP¶ÔÏóÔËÐлúÖÆ£¬ÄÚÈݹÜÀíµÈ¡£
D.¾«Í¨£ºÓ¦¸ÃÊǼܹ¹Ê¦¼¶±ðµÄÁË£¬²»ÏÞÓÚPHP¡£
4.´óÐÍÍøÕ¾¾Ñé
A.Á˽â:ÊìϤPHP¿ª·¢ÏµĻº´æÓ¦ÓÃ(memacahe,APCµÈ);½Ó´¥¹ýLVS,SQUIDÓ¦Óá£
B.ÊìϤ£ºÕÆÎÕ·Ö²¼Ê½»º´æ¼°²Å»º´æÐÔÄÜÓÅ»¯£¬ÊìϤ´æ´¢ÏµÍ³£¬Îļþϵͳ£¬Êý¾Ý¿â£¬¿ª·¢¿ÉÀ©Õ¹Æ½Ì¨¡£ÄܽáºÏ¸ºÔؾùºâºÏÀí²»Ö¹Á÷Á¿£¬¶ÔPHPÔËÐÐÐÔÄܽøÐмà¿ØºÍ·ÖÎö¡£
C.·Ç³£ÊìϤ£º¾ß±¸ÏµÍ³·ÖÎöʦÄÜÁ¦£¬ÒѾ³¬³öPHPER»·½Ú¡£
D.¾«Í¨:Éñ¡£
5.DOM¿ª·¢ÄÜÁ¦
6.*inuxÓ¦ÓÃÄÜÁ¦
Ïà¹ØÎĵµ£º
±àд¹ØÓÚ PHP µÄϵÁÐÎÄÕÂÈÃÎÒ¸ü¼ÓÉî¿ÌµØÁ˽âÁË PHP ¿ª·¢ÈËÔ±µÄÊÀ½ç¡£ÎÒºÍÐí¶à PHP ³ÌÐòÔ±½»Ì¸¹ý£¬×îÁîÎÒ¾ªÆæµÄÊÇÖ»ÓкÜÉÙµÄÈËʹÓà IDE¡£´ó¶àÊý³ÌÐòԱʹÓÃÎı¾±à¼Æ÷£¬±ÈÈç Microsoft® Windows® ÉϵļÇʱ¾¡¢Emacs »òÕß Vim¡£
ÎÒÌáµ½µÄÕâЩÎı¾±à¼Æ÷£¨ÒÔ¼°ÎÒûÌáµ½£©¶¼ÊǺܲ»´íµÄ —— ÎÒ²»ÏëÌÖÂÛ ......
½ñÌìÔÚ¼ÒÀïÖØа²×°ÁËÒ»ÏÂPHP µ±ÈÃÒ²ÓÐApacheÁË¡£µ«ÊÇÎÒÓöµ½ÁËÒ»¸öÎÊÌ⣬¾ÍÊÇApache·þÎñÎÞ·¨¿ªÆô£¬ºó¹ûÔõÑùÎÒÏëºÜ¶àÈ˶¼ÊÇÖªµÀµÄ£¬µ±Ê±Ò²Ã»ÓжàÏ룬ÒÔΪÊÇ×Ô¼º°²×°µÄʱºò³öÏÖÁËʧÎó¾ÍÖØа²×°Ò»±é£¬¿ÉÊÇ»¹ÊÇÒ»ÑùÎÞ·¨´ò¿ª£¬È»ºóÎÒ¾ÍÔÚÏëÊÇʲôÎÊÌ⣬¶Ë¿ÚºÅ80.ÎҲ鿴ÁËһϣ¬·¢ÏÖûÓдíÎó°¡£¬Ë¼¿¼Á˺ܾ㬶ÔÍøÂçÒÔ¼°·À» ......
PHP±¾ÉíÊÇÓÐÒ»¸ö¶àάÊý×éÅÅÐòµÄº¯ÊýµÄ¡£
bool
array_multisort
( array
$ar1
[, mixed
$arg
[, mixed
$...
[, array
$...
]]] )
ÏÂÃæÊÇÊֲᵱÖжÔÓÚarray_multisortº¯ÊýµÄÃèÊö£º
array_multisort() ¿ÉÒÔÓÃÀ´Ò»´Î¶Ô¶à¸öÊý×é½øÐÐÅÅÐò£¬»òÕ߸ù¾Ýijһά»ò¶àά¶Ô¶àάÊý×é½øÐÐÅÅÐò¡£
¹ØÁª£¨string ......
ÕâÊÇÎÒдµÄµÚÒ»¸ö¼ÆÊýÆ÷
<?
$s_ht="127.0.0.1";
$s_user="root";
$s_pas="123456";
$s_data="ceshi";
if (empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$myip = $_SERVER['REMOTE_ADDR'];
$myip = $_SERVER['REMOTE_ADDR'];
}
else {
$myip = explode(',', $_SERVER['HTTP_X_FORWA ......