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

PHPÕýÔò±í´ïʽ°Ù¿Æ

»ù±¾¸ÅÄî
Ò»¸öÕýÔò±í´ïʽͨ³£±»³ÆΪһ¸öģʽ (pattern)£¬ÎªÓÃÀ´ÃèÊö»òÕßÆ¥ÅäһϵÁзûºÏij¸ö¾ä·¨¹æÔòµÄ×Ö·û´®¡£ÀýÈ磺Handel¡¢Händel ºÍ Haendel ÕâÈý¸ö×Ö·û´®£¬¶¼¿ÉÒÔÓÉ“H(a|ä|ae)ndel”Õâ¸öģʽÀ´ÃèÊö¡£´ó²¿·ÖÕýÔò±í´ïʽµÄÐÎʽ¶¼ÓÐÈçϵĽṹ£º
Ñ¡Ôñ| ÊúÖ±·Ö¸ô·û´ú±íÑ¡Ôñ¡£ÀýÈç“gray|grey”¿ÉÒÔÆ¥Åägrey»ògray¡£ÊýÁ¿ÏÞ¶¨Ä³¸ö×Ö·ûºóµÄÊýÁ¿ÏÞ¶¨·ûÓÃÀ´ÏÞ¶¨Ç°ÃæÕâ¸ö×Ö·ûÔÊÐí³öÏֵĸöÊý¡£×î³£¼ûµÄÊýÁ¿ÏÞ¶¨·û°üÀ¨“+”¡¢“?”ºÍ“*”£¨²»¼ÓÊýÁ¿ÏÞ¶¨Ôò´ú±í³öÏÖÒ»´ÎÇÒ½ö³öÏÖÒ»´Î£©£º+ ¼ÓºÅ´ú±íÇ°ÃæµÄ×Ö·û±ØÐëÖÁÉÙ³öÏÖÒ»´Î¡£(1´Î¡¢»ò¶à´Î)¡£ÀýÈ磬“goo+gle”¿ÉÒÔÆ¥Åägoogle¡¢gooogle¡¢goooogleµÈ; ? ÎʺŴú±íÇ°ÃæµÄ×Ö·û×î¶àÖ»¿ÉÒÔ³öÏÖÒ»´Î¡£(0´Î¡¢»ò1´Î)¡£ÀýÈ磬“colou?r”¿ÉÒÔÆ¥Åäcolour»òÕßcolor;* ÐǺŴú±íÇ°ÃæµÄ×Ö·û¿ÉÒÔ²»³öÏÖ£¬Ò²¿ÉÒÔ³öÏÖÒ»´Î»òÕ߶à´Î¡£(0´Î¡¢»ò1´Î¡¢»ò¶à´Î)¡£ÀýÈ磬“0*42”¿ÉÒÔÆ¥Åä42¡¢042¡¢0042¡¢00042µÈ¡£Æ¥ÅäÔ²À¨ºÅ¿ÉÒÔÓÃÀ´¶¨Òå²Ù×÷·ûµÄ·¶Î§ºÍÓÅÏȶȡ£ÀýÈ磬“gr(a|e)y”µÈ¼ÛÓÚ“gray|grey”£¬“(grand)?father”Æ¥ÅäfatherºÍgrandfather¡£
ÉÏÊöÕâЩ¹¹Ôì×Ó¶¼¿ÉÒÔ×ÔÓÉ×éºÏ£¬Òò´Ë£¬“H(ae?|ä)ndel”ºÍ“H(a|ae|ä)ndel”ÊÇÏàͬµÄ¡£
¾«È·µÄÓï·¨¿ÉÄÜÒò²»Í¬µÄ¹¤¾ß»ò³ÌÐò¶øÒì¡£
[±à¼­] ÀúÊ·
×î³õµÄÕýÔò±í´ïʽ³öÏÖÓÚÀíÂÛ¼ÆËã»ú¿ÆѧµÄ×Ô¶¯¿ØÖÆÀíÂÛºÍÐÎʽ»¯ÓïÑÔÀíÂÛÖС£ÔÚÕâЩÁìÓòÖÐÓжԼÆË㣨×Ô¶¯¿ØÖÆ£©µÄÄ£ÐͺͶÔÐÎʽ»¯ÓïÑÔÃèÊöÓë·ÖÀàµÄÑо¿¡£1940Äê´ú£¬Warren McCullochÓëWalter Pitts½«Éñ¾­ÏµÍ³ÖеÄÉñ¾­ÔªÃèÊö³ÉС¶ø¼òµ¥µÄ×Ô¶¯¿ØÖÆÔª¡£ÔÚ1950Äê´ú£¬Êýѧ¼Ò˹µÙ·Ò·¿Æ¶û·¿ËÀ³ÄáÀûÓóÆ֮Ϊ“ÕýÔò¼¯ºÏ”µÄÊýѧ·ûºÅÀ´ÃèÊö´ËÄ£ÐÍ¡£¿Ï·ÌÀÆÕÑ·½«´Ë·ûºÅϵͳÒýÈë±à¼­Æ÷QED£¬È»ºóÊÇUnixÉϵı༭Æ÷ed£¬²¢×îÖÕÒýÈëgrep¡£×Ô´Ë£¬ÕýÔò±í´ïʽ±»¹ã·ºµØʹÓÃÓÚ¸÷ÖÖUnix»òÕßÀàËÆUnixµÄ¹¤¾ß£¬ÀýÈçPerl¡£
PerlÕýÔò±í´ïʽԴ×ÔÓÚHenry SpencerдµÄregex£¬ËüÒѾ­ÑÝ»¯³ÉÁËpcre£¨Perl¼æÈÝÕýÔò±í´ïʽ£¬Perl Compatible Regular Expressions£©£¬Ò»¸öÓÉPhilip Hazel¿ª·¢µÄ£¬ÎªºÜ¶àÏÖ´ú¹¤¾ßËùʹÓõĿ⡣
¸÷¼ÆËã»úÓïÑÔÖ®¼äµÄÕýÔò±í´ïʽµÄ¼¯³ÉÄ¿Ç°¿ªÕ¹µÄºÜ²î¡£Î´À´µÄPerl6µÄ×ÓÏîÄ¿ApocalypseµÄÉè¼ÆÖÐÒÑ¿¼Âǵ½ÁËÕâµã¡£
[±à¼­] ÐÎʽ»¯ÓïÑÔÀíÂÛ
ÕýÔò±í´ïʽ¿ÉÒÔÓÃÐÎ


Ïà¹ØÎĵµ£º

PHPÖÐsessionÓëcookieµÄÇø±ð

 1. PHPµÄCOOKIE
cookie ÊÇÒ»ÖÖÔÚÔ¶³Ìä¯ÀÀÆ÷¶Ë´¢´æÊý¾Ý²¢ÒÔ´ËÀ´¸ú×ÙºÍʶ±ðÓû§µÄ»úÖÆ¡£
PHPÔÚhttpЭÒéµÄÍ·ÐÅÏ¢Àï·¢ËÍcookie, Òò´Ë setcookie() º¯Êý±ØÐëÔÚÆäËüÐÅÏ¢±»Êä³öµ½ä¯ÀÀÆ÷Ç°µ÷Óã¬ÕâºÍ¶Ô header() º¯ÊýµÄÏÞÖÆÀàËÆ¡£
1.1 ÉèÖÃcookie:
    ¿ÉÒÔ ......

Linux ÏÂphpÀ©Õ¹ tidy µÄ°²×° _ ²Î¿¼

tidy ÊÇÒ»¸ö·Ç³£°ïæµÄÍøÒ³´úÂë·ÖÎöºÍ¾À´íµÄ¹¤¾ß£¬Äܹ»Ö§³Ö¶àÖÖÒ³Ãæ±àÂ룬²¢ÇÒÖ§³ÖxhtmlÊä³ö¡£Èç¹ûÎÒÃÇ͵ÀÁ£¬ÉõÖÁ¿ÉÒÔ½«Õû¸öÒ³Ã滺´æ£¬×îºó²ÉÓÃtidy´¦Àí£¬×îºóÊä³öÍêÃÀµÄxhtml´úÂë¡£
linuxÏ°²×°¹ý³ÌÈçÏ£º
Ê×ÏÈ°²×°tidy £¬ÏÂÔØtidyÔ´´úÂ룺
cvs -d:pserver: anonymous@tidy.cvs.sourceforge.net Ϊ·À±¸µç×ÓÓʼþµØÖ·ÊÕ¼¯ ......

ÖØÐÂÉóÊÓ PHP ¿ò¼Ü CodeIgniter VS Zend

×÷ÕߣºEkerete
·­Ò룺Emeric Li (http://lee.kometo.com/index.php/archives/117
)
Ô­ÎÄ£ºhttp://www.avnetlabs.com/php/php ... r-vs-zend-framework
ÎÒÃǼƻ®´ÓÍ·¿ªÊ¼Ò»¸öÐÂÏîÄ¿£¬Îª´ËÆÀ¹ÀÁËһЩPHP¿ò¼Ü¡£ÎÒÃǵı¸Ñ¡ÁбíÓÐCakePHP £¬ CodeIgniter £¬ SymfonyºÍZend ¡£ ÎÒÃÇ·Ö±ðʹÓÃÕâ4ÖÖ¿ò¼Ü±àдÁËÒ»¸öÏàͬµÄСӦÓ㨠......

php 負載¾ùºâ

Submitted by gouki
on 2008, December 28, 9:00 PM. PHP


ÎÄÕµÄÄÚÈÝдµÄ²»´í£¬ËùÒÔתÔØһϡ£
Ô­ÎÄ£ºhttp://xinsync.xju.edu.cn/index.php/archives/2946
ÄÚÈÝÈçÏ£º
XML/HTML´úÂë
¹ýÈ¥µ±ÔËÐÐÒ»¸ö´óµÄwebÓ¦ÓÃʱºòÒâζ×ÅÔËÐÐÒ»¸ö´óÐ͵Äweb·þÎñÆ÷¡£ÒòΪÄãµÄÓ¦ÓÃÎüÒýÁË´óÁ¿µÄÓû§£¬Ä㽫²»µÃ²»ÔÚÄãµÄ·þÎñÆ÷ÀïÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ