È¥µôÖÐÎÄ¿Õ¸ñµÄPHPÕýÔò´úÂë
ÖÐÎÄ¿Õ¸ñÕâÀïÃæÓкü¸ÖÖ£ºÃ»Óмòµ¥µÄ½â¾öÎÊÌâµÄ·½Ê½£¬±ÈÈç°ë½ÇÈ«½Ç¿Õ¸ñ£¬±ÈÈç¶ÎÂä·û¶¼»áÏÔʾΪ¿Õ°×µÄ£¬È»ºóÈÃÈËÃÇÎó½âËüÊÇ¿Õ¸ñ£¬ËùÒÔÈ¥µô¿Õ¸ñ֮ǰһ¶¨ÒªÏÈÈ·ÈÏ×Ô¼ºµÄÊDz»ÊÇ¿Õ¸ñ£¬ÎÒÏÂÃæ·ÖÎöÒ»ÏÂÕâÁ½ÖֵĽâ¾ö°ì·¨¡£
£¨1£©/[\s| ]+/Õâ¸ö¾Í¿ÉÒÔ£¬×¢Òâ|ºóÃæµÄ¸úµÄÊÇÈ«½Ç¿Õ¸ñ
£¨2£©mbÖеÄÕýÔòÌæ»»Ò²¿ÉÒÔÊÔÊÔ
ÁíÍâ×¢ÒâʹÓÃUnicodeµÄʱºò£¬¼ÓÉÏÕýÔò±í´ïʽÃèÊö·ûu
µ«ÓÉÓÚººÓïÖÐÏÔʾΪ¿Õ¸ñÄ£ÑùµÄÓкܶà¸ö£¬±ÈÈç˵ÎÒÏÂÃæÅöµ½µÄÕâôһ¸ö£¬ËüµÄunicode±àÂëΪC2A0£¬Ê¹ÓÃÏÂÃæµÄ±í´ïʽ¾ÍÄܽâ¾öÎÊÌâ¡£
$new['content'] = preg_replace('/^[(\xc2\xa0)|\s]+/', '',
$new['content']);
ÕâÀïÓиöϸ½Ú£º \xc2a0±¾À´ÊÇÒ»¸öUnicode×Ö·û£¬µ«ÊDz»ÄÜÆ¥Åä¶à¸ö£¬Ö»ÄÜÌæ»»Ò»¸ö£¬¡¾ÕâÀï¿ÉÄÜÊÇÒòΪ×Ö½ÚµÄÔÒò¡¿ºóÀ´Í»È»ÕÒµ½ÕâôһÖÖд·¨£¬½â¾öÁËÎÊÌ⣬ÁíÍâΪÁ˱ÜÃ⣬ÖÐÎÄ¿Õ¸ñºÍÓ¢ÎÄ¿Õ¸ñÏà»ìÔÓµÄÇéÐΣ¬ºóÃæÓÖ¼ÓÁ˸ö\sÀ´Çå³ý¡£
ÆäʵÔÚUnicodeÉϵÄÕýÔò±í´ïʽȷʵ²»ÔõôºÃÓá£
Ïà¹ØÎĵµ£º
phpÏÂÔØ£º
http://windows.php.net/download/
Ñ¡Ôñ
VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
VC6 x86´ú±í Apache HTTP Server (httpd) 2.2.15 ºÍPHP½áºÏ
apacheÏÂÔØ£º
http://httpd.apache.org/download.cgi#apache22
Ñ¡Ôñ2.2.15
httpd-2.2.15-win32-x86-no_ssl.msi [PGP] [MD5] [SHA1]
apache services 2.2Ð ......
Ä¿Ç°ÔÚInternetÉϹ㷺ʹÓõĺǫ́¼¼ÊõÖÖÀà·±¶à£¬Ó¦ÓñȽϹ㷺µÄÓÐCGI£¬ASP£¬PHP£¬JSP/JavaServlet£¬ColdFusionµÈ¡£ÔÚÕâÒ»½ÚÀÖ÷Òª½éÉܼ¸ÖÖÔÚ¹úÄÚÓ¦ÓñȽϹ㷺µÄºǫ́ÓïÑÔ¡£
¡¡¡¡CGI£¬È«³ÆΪCommon Gateway Interface
¡¡¡¡CGI¾ÍÊǹ«¹²Íø¹Ø½Ó¿Ú (Common Gateway Interface) µÄËõд¡£ËüÊÇ×îÔç±»ÓÃÀ´½¨Á¢¶¯Ì¬ÍøÕ¾µÄºǫ́¼¼Êõ ......
1 Apache
ÐÞ¸Ä documentroot ¸ùĿ¼
directory ·ÃÎʸùĿ¼ȨÏÞ
directoryindex ĬÈÏÊ×Ò³ ......
Ò» Apache µÄ°²×°
1 Apache µÄ°²×°
2 ͬÒâÐÒé
3 ½Ó×Å "Next "
4 Ìîд ÓòÃû(network domain) ·þÎñÆ÷µÄÃû³Æ (Server Name) ¹ÜÀíÕßÓÊÏä(Administrator's Email)
5 °²×°ÀàÐÍ
6 Ñ¡Ôñ°²×°Â·¾¶
7 µã»÷“install ” ¼ÌÐø
8 ¿ªÊ¼°²×°
9 °²×°½áÊø
¶þ MySqlµÄ°²×°
......
Ñ¿ÓêÔ´´PHPÐÂÎÅϵͳ½Ì³Ì£¨µÚÒ»°æ£©µÚÒ»½²£ºÓà phpmyadmin ½¨Á¢Êý¾Ý¿â
Ê×ÏȽ¨Á¢Ò»¸öÊý¾Ý¿â£¬ÃûΪ yayu ¡£ÔÚÕâ¸öÊý¾Ý¿âϽ¨Á¢Ò»¸öÊý¾Ý±í£¬ÃûΪ news ¡£ÏÂÃæ½øÈëÒ»¸öÖص㣬ÄǾÍÊÇÔÚ±í news Ͻ¨Á¢¸÷¸ö×ֶΡ£
ÄÇô£¬Ê²Ã´½Ð×Ö¶ÎÄØ£¿Í¨Ë׵㣬¾ÍÊÇÒ»ÀàÊÂÎïµÄ×ܳơ£±ÈÈç˵£¬ËùÓеÄÐÂÎÅ·¢±íʱ¼äÓÃÒ»¸öÃû´ÊÀ´´ú±í£¨´ÓżµÄ¾ÑéÀ´¿´ ......