php + mysq + linux УÈËÊ´¦ÍøÕ¾
ÒÔÇ°Ò»Ö±¸ãC++½øÐÐC/S¿ª·¢£¬Ôø¾µÄÏë·¨ÊÇÈç¹ûÓлú»á£¬Ñ§Ñ§¸ãÍøÕ¾ºÍǶÈëʽ¿ª·¢
ûÏëµ½ÕÒµ½¹¤×÷µÄµÚ2Ìì¾ÍÓÐÁË×öÍøÕ¾µÄ»ú»á£¬Ò²×¬µ½ÁË×Ô¼º´óѧÆÚ¼ä×î¸ßµÄÒ»·Ý¹¤×Ê£¬10Ìì1000¿é
ÔÚʲôµÄ¶¼²»»áµÄÇé¿öÏ£¬¾¡È»´ðÓ¦ÈËÊ´¦µÄÀÏʦһ¸öÐÇÆÚдºÃÍøÕ¾µÄºǫ́
ÎÒ³ÐÈÏÕÒµ½¹¤×÷ºó×Ô¼ºÊÇÓеã¿ñÁË£¬ºÜ¶àÊÂûעÒâµ½£¬ºÜ¶àʺó»Ú²»ÁË¡£¡£¡£
½ÓÏÂÀ´µÄÒ»¸öÐÇÆÚ¶¼¿´ÁË2ÌìµÄphp¡¢htm£¬ÓÃÁË֮ǰרҵÃÀ¹¤Ð´ºÃµÄcss´úÂëºÍ×Ô¼ºÕÒµÄһЩjs´úÂ룬°ÑÍøÕ¾µÄǰ̨дºÃÁË£¬Á½ÈýÌìºóŪºÃºǫ́£¬½ö°ÑÖмäÓöµ½µÄ²¿·ÖÎÊÌâÌù³öÀ´£¬¹©ÏñÎÒÕâÑùµÄ³õѧÕßÓ¦¼±£¬¸ü¶àµÄÐèÒª×Ô¼ºÈ¥Ì½Ë÷
1.ÖÐÎÄ×Ö·û¼¯
ÍøÕ¾·¢²¼ÉÏÈ¥¾Í³öÏÖÁËÎÊÌ⣬ÒòΪ֮ǰһֱÔÚwindowsϲâÊÔ£¬½á¹ûתµ½linuxµÄ·þÎñÆ÷ÉÏ£¬´úÂë¾ÍÅÜ·ÉÁË£¬²»µÃÒѽ«ËùÓÐÉÏ´«µÄÏûÏ¢Îļþ»»ÃûΪ±àºÅ¼ÓÉÏÒ»´®Ëæ»ú×ÖĸÊý×Ö»ìºÏ
2.²»ÑϸñµÄÀàÐͶ¨Òå
phpÊôÓÚÈõÀàÐͶ¨Ò壬Óиö¸ãÁ˼¸Ê®·ÖÖӵĴíÎó¾ÍÊÇÒòΪ´ÖÐÄд´íÁËÒ»¸ö±äÁ¿µÄ×Öĸ£¨±»ÈÏΪÊÇÒ»¸öеıäÁ¿ÁË£¬ÔÚphpÖУ©
3.Ç¿´óµÄechoÀàËÆsprintf
4.Ò³ÃæÖ®¼äµÄÊý¾Ý´«ËÍ
getºÍpost·½Ê½£¬×¢Òâ¶ÔÓÚ×Ö·û´®´«ËÍ×îºÃʹÓÃurlencode¼ÓÃÜÔÙdecode½âÃÜ
5.mysql²Ù×÷
¸úmssql»¹ÊDZȽÏÏàËƵģ¬¾ßÌåÇø±ð²»Ì«¼ÇµÃÁË£¬·´ÕýÓõ½²»»áµÄ¶¼ÊÇgoogle½â¾öµÄ
6.·ÖÒ³µÄʵÏÖ
ÔÚºóÀ´Ð´asp.netÍøҳʱºò£¬²ÅÖªµÀ.netÖÐÒѾ¶¨ÒåºÃµÄ¿Ø¼þʱ¶àôǿ´ó
ÓÃgetµÄ·½Ê½»ñµÃµã»÷ÏÂÒ»Ò³´«Ë͹ýÀ´µÄÒ³Â룬ÔÙÓÃÉÏmysqlµÄlimit¹Ø¼ü×ָ㶨£¬¼ÇµÃÒ³ÂëµÃ++
7.apache ÅäÖÃ
ΪÁ˲»ÔÊÐíÍøÕ¾³ö´íʱºò£¬ÁгöÍøҳĿ¼£¬±©Â¶ÁËÍøÒ³¼Ü¹¹£¬ÅäÖÃapache²Î¼ûÍøÕ¾£¬¾ÍÒ»¾ä»°µÄÎÊÌâ
http://hi.baidu.com/huweili/blog/item/cea87e31862da310ebc4af89.html
8.¶ÔÎļþÃû¿Õ¸ñµÄ´¦Àí
¿Õ¸ñ»á±»µ±×ö%20´¦Àí£¬ÔÚurlÖУ¬Óõ½ÉÏÃæµÄurlencode¾ÍÐÐÁË£¬Òª²»È»´ø¿Õ¸ñµÄÎļþ»òÊÇÎļþÃûͨ¹ýurl´«µÝʱ»á³ö´íµÄ
9.³¬Ç¿¹öÆÁ´úÂë
http://www.aa25.cn/552.shtml£¨ºÃÏñÊÇÕâ¸öÍøÕ¾£©
ΪÁËʵÏÖÐÂÎŵĴ¹Ö±²»¼ä¶Ï¹ö¶¯£¬ÔÚÍøÉÏÕÒÁ˺ܶàjs´úÂ룬ÉÏÃæÕâ¸öÊÇЧ¹û×îºÃµÄ£¬µ«ÊÇÔÚieÄں˵Ää¯ÀÀÆ÷ÏÂЧ¹ûÈ´²»ÊǺܺã¬ÎÒÓÃphpÅжÏÁËä¯ÀÀÆ÷ÀàÐÍ£¬È»ºó¾ö¶¨ÊÇʹÓÃÉÏÃæµÄ´úÂ뻹ÊÇieµÄmarquee
10.²åÈëÂÒÂëÎÊÌâ
mysql_query("SET NAMES 'gb2312'");Ð޸ıàÂ룬ÐèÒª¸ù¾ÝÊý¾Ý¿â¶ø¶¨£¬Òª²»È»mysqlµÄ²åÈëÓï¾ä¼«¿ÉÄÜ´øÀ´ÂÒÂë
11.Ò³Ãæ²»»á¹öµ½ÍøÒ³¿ªÍ·
http://www.phpwind.net/read-htm-tid-521972.html
12.×Ô¶¯Ë¢ÐµÄʵÏÖ
$url_this = "http://".$_SERVER ['HTTP_HOST'].$_SERVER['REQUEST_URI'];
&n
Ïà¹ØÎĵµ£º
PHPÔ´´úÂë¼òµ¥·ÖÎö
1. Ŀ¼½á¹¹
1. build ºÍ±àÒëÓйصÄĿ¼¡£
2. ext À©Õ¹¿â´úÂ룬ÀýÈç Mysql¡¢zlib¡¢iconv µÈÎÒÃÇÊìϤµÄÀ©Õ¹¿â¡£
3. main Ö÷Ŀ¼¡£
4. sapi ºÍ¸÷ÖÖ·þÎñÆ÷µÄ½Ó¿Úµ÷Óã¬ÀýÈçapache¡¢IISµÈ£¬Ò²°üº¬Ò»°ãµÄfastcgi¡¢cgiµÈ¡£
5. wi ......
×î½ü¹¤×÷·¶³ëÓÉÔÀ´µÄ.netÇл»µ½ÁËphp£¬×ÛºÏÕâ¶Îʱ¼äµÄÈÏÖª£¬¾õµÃÔÚphpÕâ¸öÌåϵÖÐMVCģʽδ±ØÊÇÒ»¸öºÃ¶«Î÷¡£
´ÓijÖÖÀíÂÛÉÏÀ´Ëµ,MVCȷʵ¿ÉÒÔÈÃϵͳ¸üÇåÎúºÍ¸üÃ÷ÁË¡£
µ«ÊÇÒ»¸öºÜÖØÒªµÄÒ»µãÒ²´æÔÚÁË£¬MVCÈÃÒ³Ãæ¸ü¶àÁËÆðÀ´£¡£¡£¡ÕâµãºÜÖØÒª
PHPÔÚûÓÐÒ»¸ö±È½ÏºÃµÄIDEµÄÖ§³ÖÏ£¬Ò³ÃæÌøתºÍÇл»ÊµÔÚÊǷdz£²»·½±ã¡£
ûÓÐÒ»¸öºÃ ......
¼Ì³ÐÌØÐÔ¼ò»¯Á˶ÔÏó£¬ÀàµÄ´´½¨£¬Ôö¼ÓÁË´úÂëµÄÖØÓÃÐÔ¡£µ«ÊÇPHPÖ®Ö§³Öµ¥¼Ì³Ð¡£Èç¹ûÏëʵÏÖ¶à¼Ì³ÐµÄ»°¾ÍÒªÓõ½PHPµÄ½è¿Ú¡£PHP¿ÉÊÇʵÏÖ¶à¸ö½Ó¿Ú¡£
²»ÒªÓÃpublicÒÔÍâµÄ¹Ø¼ü×ÖÀ´ÐÞÊνӿÚÖеÄÀà³ÉÔ±¡£¶ÔÓÚ·½·¨£¬²»Ð´¹Ø¼ü×ÖÒ²¿ÉÒÔ¡£ÕâÊÇÒ»¸ö½è¿ÚÀà×ÔÉíµÄÌìÐÔ¾ö¶¨µÄ¡£ÄÇôÎÒÏëËûÊÇΪʲôÄØ£¿
¶ÔÓÚ½Ó¿ÚÀ´Ëµ£¬Ëü²»ÄÜÓÃprotected,ºÍpr ......
´úÂëÈçÏ£º
<?php
class Book{
static $num=0;
public function showme(){
echo 'ÄúÊǵÚ'.self::$num.'λ·Ã¿Í';
self::$num++;
......
phpÖÐʵÏÖ¶àÏß³Ì
PHPÖÐʵÏÖ¶àÏß³Ì? ¿´µ½Õâ¸ö±êÌâ ÄãÒ»¶¨ÒÔΪÎÒ·èÁË..µ«ÊÇÊÂʵÉÏÎÒÕæµÄÕâô×öÁË.
ÏÂÃæÊÇÎÒµÄһЩ×ö·¨ ÒѾʵÑé¹ý. ȷʵ¿ÉÒÔµÄ.
ÎÒÃÇÖªµÀPHP±¾ÉíÊDz»Ö§³Ö¶àÏß³ÌµÄ µ«ÊÇÎÒÃǵÄWEB·þÎñÆ÷ÊÇÖ§³Ö¶àÏ̵߳Ä.
Ò²¾ÍÊÇ˵¿ÉÒÔͬʱÈöàÈËÒ»Æð·ÃÎÊ. ÕâÒ²ÊÇÎÒÔÚPHPÖÐʵÏÖ¶àÏ̵߳Ļù´¡.
¼ÙÉèÎÒÃÇÏÖÔÚÔËÐеÄÊÇa.phpÕâ¸öÎ ......