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

³ÉΪPHP¸ßÊÖµÄÎå¸öÃؼ® ÄÏÈý·½

¾­³£ÓÐһЩ¾­Ñé²»×ãµÄPHP¿ª·¢ÈËÔ±ÔÚFreenodeµÄphp IRCƵµÀÉÏÎÊÎÊÌâ¡£Èç¹ûÎÊÌâºÜËöË飬»òÕß´ð°¸ÏÔ¶øÒ×¼û£¬»ò±íÏÖµÃÏóÒ»¸ö²ËÄñ£¬ºÜ¿ìËûÃǾͻᷢÏÖ»áÊܵ½ÈçÏÂһЩ»Ø¸´µÄÅں䣺“È¥¶Á¸ÃËÀµÄÊÖ²áÈ¥°É”£¬“ºÃºÃȥѧһѧPHP°É”£¬“ÎÒÃDz»ÊÇÄã¸öÈ˵ĵ¼Ê¦”»ò¸üÖ±½ÓµÄ“ÄãÐèÒª³ÉΪһ¸ö¸üºÃµÄPHP¿ª·¢Õß”¡£µ«ÊÇ£¬ÔõÑù²ÅÄܳÉΪһ¸ö¸üÓÅÐãµÄPHP¿ª·¢ÕßÄØ£¿ÔÚÕâƪÎÄÕÂÖУ¬ÎÒÁгöÁËÎåÖÖ³ÉΪ¸üÓÅÐãµÄPHP¿ª·¢Õߵķ½·¨£¬ÈÃÄãÔÚPHP¿ª·¢¹ý³ÌÖÐÌá¸ßЧÂÊ£¬ÓøüÉٵĴúÂëÀ´Íê³É¸ü¶àµÄÊÂÇé¡£ÔÚPHPµÄ¿ª·¢¹ý³ÌÖÐÓÀÔ¶»áÓиü¶àµÄÄÚÈÝÐèҪȥѧϰ,ÈçеĺËÐĺ¯Êý£¬ÐµĿò¼Ü£¬ÐµÄÉè¼Æģʽ£¬ÐµıàÂë»òÎĵµ¹æ·¶µÈµÈ¡£ÏÂÃæ¾ÍÊÇһЩ³ÉΪ¸üÓÅÐãµÄPHP¿ª·¢ÕßµÄ×î¼Ñ;¾¶¡£
1.ÔĶÁÊÖ²á
ûʲô±ÈÔĶÁÊÖ²á¸üÖµµÃÇ¿µ÷µÄÊÂÁË–½ö½öͨ¹ýÔĶÁÊÖ²áÄã¾Í¿ÉÒÔѧϰµ½ºÜ¶à¶«Î÷¡£ÌرðÊÇÓйØ×Ö·û´®ºÍÊý×éÓйصĺ¯Êý¡£¾ÍÔÚÕâЩº¯ÊýÀïÃæ°üÀ¨Ðí¶àÓÐÓõŦÄÜ£¬Èç¹ûÄã×ÐϸÔĶÁÊֲᣬÄã»á¾­³£·¢ÏÖÔÚÒÔÍùµÄÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ºÜ¶àʱºòÄãÔÚ“Öظ´·¢Ã÷ÂÖ×Ó”£¬¶øʵ¼ÊÉÏÄãÖ»ÐèÒªÒ»¸öºËÐĺ¯Êý¾Í¿ÉÒÔÍê³ÉÏàÓ¦µÄ¹¦ÄÜ¡£ÊÖ²áÊÇÄãµÄÅóÓÑ¡£
2.ÔĶÁ³ÌÐòÔ´´úÂë
ÓкܶàʹÓÃPHP¿ª·¢µÄ¿ªÔ´³ÌÐò¡£ÎªÊ²Ã´²»È¥Ñ§Ï°ºÍ½è¼øÄØ£¿ÏÂÔØÒ»·Ý¿ªÔ´µÄPHPÓ¦ÓóÌÐòµÄÔ´´úÂ룬×ÐϸÔĶÁËü°É¡£Ò²ÐíÔ½´óµÄÏîÄ¿Ô½ÖµµÃÈ¥ÔĶÁ£¬ËäÈ»ËüÃÇÒ²ÐíÓиü¸´ÔӵĽṹºÍϵͳ£¬µ«Ò²ÓиüÏêϸµÄ½âÊÍÎĵµ¡£
3.ѧϰһÖÖ¿ò¼Ü
ÏÖÔڵĿò¼ÜÈçÓêºó´ºËñ°ã·×·×³öÁý;ËüÃÇÖеĴ󲿷ֶ¼ÊÇ¿ªÔ´µÄ£¬¿ÉÒÔÖ±½Ó´ÓÍøÉÏÏÂÔØ£¬µ±È»ÄãÒªÖªµÀ´ÓÄÄÀïÈ¥ÏÂÔØ¡£¿ÉÒÔÏÈÑ¡ÔñһЩÖ÷Á÷µÄ¿ò¼Ü — ÍøÕ¾http://www.phpframeworks.comÀïÓÐÒ»¸ö·Ç³£ºÃµÄÖ÷Á÷¿ò¼ÜµÄÁÐ±í¡£
4.Ñо¿
ÔÚPHPÍøÕ¾¿ª·¢¹ý³ÌºÍÌÖÂÛÖÐÄã¿ÉÄÜÌý˵¹ýºÜ¶àÊõÓï¡£´ÓOOPµ½MVC,KISSµ½DRY,YAMLµ½INI,ÉõÖÁRESTµ½XML-RPC£¬Ò²ÐíÓÐÊý°Ù¸öÓëÄãµÄ¹¤×÷Ö±½ÓÏà¹ØµÄ¼¼Êõ¸ÅÄî¡£ÄãÒ²Ðí¶ÔËüÃÇÓÐÁËÒ»¸ö»ù±¾µÄÁ˽⣬µ«ÄãÕæµÄÁ˽âËüÃǵ½µ×ÊÇʲô£¬¶ÔÄãÓÐʲôÒâÒåÂ𣿻¨Ò»µãʱ¼äÈ¥×öЩʵʵÔÚÔÚµÄÑо¿°É¡£WikipediaÊÇ´ÓÊÂÕâЩÑо¿µÄºÜºÃµÄÆðµã¡£ÄãÒ»¶¨»á´ÓÖÐѧµ½Ò»Ð©ÐÂ֪ʶµÄ¡£
5.ѧϰÃæÏò¶ÔÏó³ÌÐòÉè¼Æ
ÕâÒ²ÐíÊÇÉÏÒ»¸ö·½·¨µÄ¼ÌÐø£¬µ«ÊÇOOP±ÈÄãÏëÏóµÄ¸üÖØÒª¡£ÄãÕæµÄÁ˽âPHP5ÖÐOOPÊÇÈçºÎʵÏÖµÄÂð£¿ÀýÈ磬ÄãÕæµÄÁ˽â³éÏóÀ࣬½Ó¿Ú£¬“implements”¹Ø¼ü×Ö£¬¾²Ì¬·½·¨ºÍ¾²Ì¬ÊôÐÔ£¬·ÃÎÊÐÞÊηû“protected”Âð£¿ÉõÖÁÐí¶àÓо­ÑéµÄ¿ª·¢ÈËÔ±¶¼µ¹ÔÚÕâЩÎÊÌâµÄÃæÇ°¡£Èç¹ûÄãÄܳä·ÖÀûÓÃ


Ïà¹ØÎĵµ£º

PHP³ÌÐòÔ±×îÒ×·¸10ÖÖ´íÎó(תÔØ)


PHPÊǸöΰ´óµÄweb¿ª·¢ÓïÑÔ£¬Áé»îµÄÓïÑÔ£¬µ«ÊÇ¿´µ½php³ÌÐòÔ±Öܶø¸´Ê¼µÄ·¸µÄһЩ´íÎó¡£ÎÒ×öÁËÏÂÃæÕâ¸öÁÐ±í£¬ÁгöÁËPHP³ÌÐòÔ±¾­³£·¸µÄ10ÖдíÎ󣬴ó¶àÊýºÍ°²È«Ïà¹Ø¡£¿´¿´Äã·¸Á˼¸ÖÖ£º
1.²»×ªÒâhtml entities
Ò»¸ö»ù±¾µÄ³£Ê¶£ºËùÓв»¿ÉÐÅÈεÄÊäÈ루ÌرðÊÇÓû§´ÓformÖÐÌá½»µÄÊý¾Ý£© £¬Êä³ö֮ǰ¶¼Òª×ªÒâ¡£
echo $_GET['usenam ......

ÓÃPHP¹¹½¨×Ô¶¨ÒåËÑË÷ÒýÇæSphinx

1. ´´½¨Ë÷Òý
$ sudo /usr/local/bin/indexer --config /usr/local/etc/sphinx.conf --all
Sphinx 0.9.7
Copyright (c) 2001-2007, Andrew Aksyonoff
using config file '/usr/local/etc/sphinx.conf'...
indexing index 'catalog'...
collected 8 docs, 0.0 MB
sorted 0.0 Mhits, 82.8% done
total 8 docs, 149 byt ......

PHP·¢ËÍÓʼþ phpmailer

×î½üŪPHPÓʼþ·¢ËÍʱ£¬´ÓÍøÉÏÔØÁ˶δúÂ룬×ÜÊÇÓÐЩÎÊÌ⣬ËùÒÔ¶ÔÕâЩÎÊÌâµÄ½â¾ö×÷Ò»¸ö¼Ç¼£¬·½±ãÒÔºó²éÔÄ¡£
PHP·¢ËÍÓʼþ£º
1¡¢class.phpmailer.php Àà°üµÄ¹ÙÍøÏÂÔØ×îаæµÄphpmailerÀ࣬Ҫע²áµÄŶ¡£
2¡¢×¢Òâ¿´ÄãµÄ·¢ËÍÓÊÏäÊDz»ÊÇ¿ªÍ¨µÄSMTP·þÎñ¡£µÇ¼ÓÊÏä -> ÉèÖ㬠²é¿´ÊÇ·ñÖ§³ÖSMTP»òÊÇ·ñ¿ªÆô¡£
3¡¢ÎÊÌ⣺it is no ......

¼¼Êõ±¸Íü Ϊphp5ÅäÖÃmysql

ÏÖ´æÎÊÌ⣺
1.ÎÞ·¨¼ÓÔØ mcrypt À©Õ¹£¬Çë¼ì²éÄúµÄ PHP ÅäÖá£
°´ÕÕÍøÉÏ˵µÄ¸Ã×öµÄòËƶ¼×öÁË µ«ÊǵÚÒ»´Î´ò¿ªphpmyadminÖ÷ҳʱ »¹ÊÇÓÐÕâ¸öÌáʾ Ææ¹ÖµÄÊǽøÈ¥Ö®ºó ÀïÃæûÓÐÕâ¸öÌáʾ È»ºóÍ˳öÍâÃæҲûÁË
2.ÅäÖÃÎļþÏÖÔÚÐèÒªÒ»¸ö¶ÌÓïÃÜÂë¡£
ÍøÉÏÕÒÁË µ«ÊÇÎÊÌ⻹ÊÇû½â¾ö ......

¹úÄÚPHP¿ªÔ´½¨Õ¾³ÌÐòÒ»ÀÀ ÄÏÈý·½

×î½ü¸ø¹«Ë¾×öÒ»¸ö¼òµ¥µÄÍøÉÏÏîÄ¿£¬ÓÚÊÇÏëµ½ÁËÓÿªÔ´µÄ³ÌÐò£¬ËÑÁËһϣ¬¸Ð¾õͦÓÐÓõģ¬¾Í·¢ÉÏÀ´ÁË¡£
¹úÄÚPHP¿ªÔ´½¨Õ¾³ÌÐòÒ»ÀÀ
¹úÍâµÄ¿ªÔ´¼¼ÊõÒ²Ó°ÏìºÍÍƶ¯Á˹úÄÚ¿ªÔ´³ÌÐòµÄ·¢Õ¹£¬ÉÏÎÄÎÒ½éÉܵġ¶¹úÍâÓÅÐ㿪ԴPHP½¨Õ¾³ÌÐòÒ»ÀÀ¡· ÖУ¬ºÜ¶à¹úÍ⿪Դ³ÌÐò²¢²»Ì«·ûºÏÖйúÈ˵ÄʹÓÃÏ°¹ß£¬¶ø¹úÄÚÓÐһЩ³§¼Ò»ò¸öÈËÒ²×öÁËһЩ²»´íµÄ²úÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ