¹ØÓÚPHP VC9,VC6,Thread Safe,Non Thread Safe
Ò»¡¢ÈçºÎÑ¡Ôñ PHP5.3 µÄ VC9 °æ±¾ºÍ VC6 °æ±¾
VC6 °æ±¾ÊÇʹÓà Visual Studio 6 ±àÒëÆ÷±àÒëµÄ£¬Èç¹ûÄãµÄ PHP ÊÇÓà Apache À´¼ÜÉèµÄ£¬ÄÇÄã¾ÍÑ¡Ôñ VC6 °æ±¾¡£
VC9 °æ±¾ÊÇʹÓà Visual Studio 2008 ±àÒëÆ÷±àÒëµÄ£¬Èç¹ûÄãµÄ PHP ÊÇÓà IIS À´¼ÜÉèµÄ£¬ÄÇÄã¾ÍÑ¡Ôñ VC9 °æ±¾¡£
¶þ¡¢ÈçºÎÑ¡Ôñ PHP5.3 µÄ Thread Safe ºÍ Non Thread Safe °æ±¾
ÏÈ´Ó×ÖÃæÒâ˼ÉÏÀí½â£¬Thread Safe ÊÇḬ̈߳²È«£¬Ö´ÐÐʱ»á½øÐÐỊ̈߳¨Thread£©°²È«¼ì²é£¬ÒÔ·ÀÖ¹ÓÐÐÂÒªÇó¾ÍÆô¶¯ÐÂÏß³ÌµÄ CGI Ö´Ðз½Ê½¶øºÄ¾¡ÏµÍ³×ÊÔ´¡£Non Thread Safe ÊÇ·ÇḬ̈߳²È«£¬ÔÚÖ´ÐÐʱ²»½øÐÐỊ̈߳¨Thread£©°²È«¼ì²é¡£
ÔÙÀ´¿´ PHP µÄÁ½ÖÖÖ´Ðз½Ê½£ºISAPI ºÍ FastCGI¡£
ISAPI Ö´Ðз½Ê½ÊÇÒÔ DLL ¶¯Ì¬¿âµÄÐÎʽʹÓ㬿ÉÒÔÔÚ±»Óû§ÇëÇóºóÖ´ÐУ¬ÔÚ´¦ÀíÍêÒ»¸öÓû§ÇëÇóºó²»»áÂíÉÏÏûʧ£¬ËùÒÔÐèÒª½øÐÐḬ̈߳²È«¼ì²é£¬ÕâÑùÀ´Ìá¸ß³ÌÐòµÄÖ´ÐÐЧÂÊ£¬ËùÒÔÈç¹ûÊÇÒÔ ISAPI À´Ö´ÐÐ PHP£¬½¨ÒéÑ¡Ôñ Thread Safe °æ±¾£»
¶ø FastCGI Ö´Ðз½Ê½ÊÇÒÔµ¥Ò»Ïß³ÌÀ´Ö´ÐвÙ×÷£¬ËùÒÔ²»ÐèÒª½øÐÐÏ̵߳ݲȫ¼ì²é£¬³ýÈ¥Ḭ̈߳²È«¼ì²éµÄ·À»¤·´¶ø¿ÉÒÔÌá¸ßÖ´ÐÐЧÂÊ£¬ËùÒÔ£¬Èç¹ûÊÇÒÔ FastCGI À´Ö´ÐÐ PHP£¬½¨ÒéÑ¡Ôñ Non Thread Safe °æ±¾¡£
¹Ù·½²¢²»½¨ÒéÄ㽫Non Thread Safe Ó¦ÓÃÓÚÉú²ú»·¾³£¬ËùÒÔÎÒÃÇÑ¡ÔñThread Safe °æ±¾µÄPHPÀ´Ê¹Óá£
ÎÄÕÂÀ´×Ô: ÖйúITÔÚÏß(www.CNITonline.com) ÏêÎIJο¼£ºhttp://www.cnitonline.com/tech/program/php/1607.html
Ïà¹ØÎĵµ£º
ºÜ¶àÕ¾³¤Ì¸SEOÓÅ»¯Ê±¶Ô°Ù¶ÈÈÈÃŹؼü´ÊºÜ¸ÐÐËȤ£¬ºÏÀíÀûÓÃÈÈÃŹؼü´Ê½øÐÐÓÅ»¯¶ÔÍøÕ¾ÅÅÃûÊÇÓаïÖúµÄ£¬µ±È»ÎÒ˵µÄÊǺÏÀíÀûÓ㬿ɲ»ÄÜÀÄÓðٶȹؼü´Ê£¬ÆðÂëijЩ¹Ø¼ü´Ê¶ÔÓ¦µÄÄÚÈÝÓ¦¸ÃÊÇÄãµÄÍøÕ¾ÉÏ¿ÉÒÔÌṩµÄ¡£³¶Ô¶ÁË¡£¡£
ÎÒ½ñÌìҪ˵µÄÊÇÈçºÎÓÃPHP×Ô¶¯»ñÈ¡°Ù¶ÈTOP50ÈÈÃŹؼü×Ö¡£ÖÁÓÚÈçºÎÀûÓÃÕâЩ¹Ø¼ü×Ö¾ÍÊÇÄãµÄÊÂÁË¡£
Ê×ÏÈ£¬Õ ......
¸Õ»»ÁËÒ»¸ö¹¤×÷£¬ÏÖÔÚûʲôÊÂ×ö£¬Ð´ÁËÒ»¸öÊý¾Ý»º´æµÄÀà¡£
¿ÉÒÔ»º´æÊý×飬×Ö·û£¬¶ÔÏóµÈ£¬Ö´ÐÐЧÂÊ»¹Ã»ÓвâÊÔ£¬ÏȷųöÀ´°É¡£
ʵÀýÈçÏ£º
* @example
* require 'MyCache.class.php';
* $mc = new MyCache("./test/cache");
* $a = "hello world111";
* $mc->set("ss", $a);
......
Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [\u4e00-\u9fa5]
ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^\x00-\xff]
ÆÀ×¢£º¿ÉÒÔÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È£¨Ò»¸öË«×Ö½Ú×Ö·û³¤¶È¼Æ2£¬ASCII×Ö·û¼Æ1£©
Æ¥Åä¿Õ°×ÐеÄÕýÔò±í´ïʽ£º\n\s*\r
ÆÀ×¢£º¿ÉÒÔÓÃÀ´É¾³ý¿Õ°×ÐÐ
Æ¥ÅäHTML±ê¼ÇµÄÕýÔò±í´ïʽ£º ......
“ÊØÍûÐù”²©¿ÍÓÒ²à±ßÀ¸ÔÀ´Óиö“ÔӸДµÄÀ¸Ä¿£¬ÓÃÀ´¼Ç¼¶ÌµÄ¡¢²»ÄÜ´óƪ·ù³ÉÎĵĶ̾䣬»òÕß×Ô¼º±È½Ïϲ»¶µÄ¶Ì¾äºÍÑÔÂÛ¡£
Õâ¸öÀ¸Ä¿×ʼµ÷ÓÃ΢²©·¹·ñµÄAPIÀ´×öµÄ£¬ÒòΪÖÚËùÖÜÖªµÄÔµ¹Ê£¬·¹·ñÎÞ·¨Ê¹ÓÃÁË£¬ºóÀ´²ÉÓÃÌÚѶµÄÌÏÌÏAPIÀ´ÊµÏÖ.2010Äê1ÔÂ26ÈÕÌÏÌÏÒµÎñ½«»á¿ªÊ¼ºÍQQ¿Õ¼äÐÄÇéÕûºÏ£¬Ö»ÄÜ¿¼ÂÇ·ÅÆú¡£ ......
ÔÚPHPÖУ¬ÎļþÉÏ´«Ò»°ãÊÇͨ¹ýmove_uploaded_file£¨£©À´ÊµÏֵġ£
bool move_uploaded_file ( string filename, string destination )±¾º¯Êý¼ì²é²¢È·±£ÓÉ filename Ö¸¶¨µÄÎļþÊǺϷ¨µÄÉÏ´«Îļþ£¨¼´Í¨¹ý PHP µÄ HTTP POST ÉÏ´«»úÖÆËùÉÏ´«µÄ£©¡£Èç¹ûÎļþºÏ·¨£¬Ôò½«ÆäÒƶ¯ÎªÓÉ destination Ö¸¶¨µÄÎļþ¡£
Èç¹û filename ²»ÊǺϷ ......