win7ÏÂIIS ÓÃFastCGIÄ£¿é ÅäÖÃPHP ¹²ÓÐ0Ìõ»Ø¸´
×î½üÓÃwin7ÁË£¬ÅªÁ˸ö¼¤»îÂ룬Ҳ²»ÖªµÀÄÜÓõ½Ê²Ã´Ê±ºò£¬ÐÄÀï¶àÉÙÊÇÓеãÓÇÂǵģ¬Ã»¸öµ×£¬¹ÜËûµÄÄØ£¬ÏÖÔÚÄÜÓþÍÏÈÓÃ×Å£¬ÒÔǰҲûÍæÔõô¹ýVista£¬²»¹ý¸Ð¾õwin7½çÃæÉÏ»¹ÊÇÓеãÏñVistaµÄ£¬ÓÐЩ¹¦ÄÜÉÏÒ²²î²»¶à£¬²»¹ý¸Ð¾õÓÃÕâ¸öwin7»¹Õæ²»´í£¬ÎÒÒ²Ö»ÊÇÏà¶ÔXPµÄ¸Ð¾õ£¬µ±È»ÁË£¬win7µÄÓ²Å̿ռ䵹ÊÇÕ¼ÓÃÁ˲»ÀÏÉÙÎÒ19GµÄCÅÌ×°Íêºó¾Í»¹Ê£10G¶àµãµÄ¿ÉÓÿռäÁË¡£×òÍíΪÁËÄÜ°ÑCÅ̵ÄProgramDataÎļþ¼ÐºÍusers/crossyouÒƶ¯µ½DÅÌ·ÑÁËÎÒ²»ÉÙ¾¢£¬Ò»¸ö×Ö“ÄÑ”£¬²»¹ýÏÖÔÚ¸ãºÃÁË£¬°²×°Ó¦ÓÃÈí¼þµÄÊý¾Ý¶¼»á±£´æµ½DÅ̵ÄProgramDataÎļþ¼ÐÀïÁË£¬ÎÒµÄÓû§ÐÅÏ¢Ò²¶¼±£´æµ½ÁËDÅÌÀïµÄusers/crossyouÎļþ¼ÐÀ·½±ãÒÔºó»¹ÔÁË£¬ºÇºÇ£¬¸Ð¾õ²»´í¡£Óйؽ̳̿´¿´ÕâÀï°É£¬µ±È»ÎÒûÏñËû˵µÄÄÇÑù°ÑusersÎļþ¼ÐÒƶ¯µ½ÁËDÅÌ£¬ÎÒÖ»°ÑÎÒµÄÕË»§CrossYouÒƶ¯µ½ÁËDÅÌÀï¡£
ÒòΪ¿ÉÄÜÊÇûÓùýVistaµÄÔµ¹Ê°É£¬¾õµÃwin7ÀïµÄÒ»¸öÌØÉ«¾ÍÊÇiisµÄ±ä»¯ºÜ´ó(Ïà¶Ôxp-os)£¬win7ÀïûÓа²×°iisÕâÒ»²½ÁË£¬ÄãÖ»ÐèÔÚ£º¿ØÖÆÃæ°å—->³ÌÐòºÍ¹¦ÄÜ—->´ò¿ª»ò¹Ø±Õwindows¹¦ÄÜ—->Ñ¡ÖÐiisµÄÏà¹ØÑ¡Ïµã»÷ È·¶¨ °´Å¥ ¾Í¿ÉÒÔÁË¡£¿´À´win7ʵ¼ÊÉÏÒѾ°²×°ºÃÁËiis£¬ÎÒÃÇËùÒª×öµÄÖ»Ð迪ÆôÕâ¸ö¹¦ÄܾÍokÁË¡£ºÃÁËiis¿ªÆôÁ˺ó£¬ÎÒÃÇÔÚiisÏÂʹÓÃfastcgiÄ£¿éÀ´ÅäÖÃphpÒÔʹphp³ÌÐòÒ²ÄÜÔÚiisÏÂÔËÐС£·Ï»°µ½´ËΪֹ¡£
¸üºÃµÄ½Ì³Ì£ºhttp://learn.iis.net/page.aspx/724/install-and-configure-php/
1.ÏÂÔØ×îаæµÄWindows Binaries non-thread-safe PHP ѹËõ°üµ½±¾µØ¼ÆËã»ú¡£
2.½âѹphpѹËõ°üÀïµÄÎļþµ½D:\Program_PHP\php£¨ÕâÊÇÎÒµÄphp°²×°Ä¿Â¼£¬Äã¿ÉÒÔ°²×°ÔÚÄãϲ»¶µÄλÖã©¡£
3.È»ºó½«D:\Program_PHP\phpÀïµÄÎļþPhp.ini-recommended-productionÖØÃüÃûΪphp.ini¡£
4.ÓÃÎı¾±à¼Æ÷´ò¿ªphp.ini½øÐÐÈçÏÂÉèÖãº
a. fastcgi.impersonate = 1
b.cgi.fix_pathinfo=0
c.cgi.force_redirect = 0
d.open_basedir Ö¸Ïò°üº¬ php ³ÌÐòµÄÍøվ·¾¶¡£ (¿ÉÑ¡Ïî)
e.extension_dir = “./ext”
f.error_log=”D:php_errors.log” (¿ÉÑ¡Ïî)
g. ´ò¿ªÒ»Ð©ÄãËùÐèÒªµÄÀ©Õ¹£¬±ÈÈç extension=php_mssql.dllµÈ
5.°´×¡alt¼ü£¬Êó±êË«»÷ ¼ÆËã»ú ´ò¿ªÆäÊôÐÔ µ¥»÷×ó²àµÄ ¸ß¼¶ÏµÍ³ÉèÖà µã»÷ÓÒÏÂ½ÇµÄ »·¾³±äÁ¿ ÔÚ pathÖÐÉèÖÃÄãµÄphp°²×°Â·¾¶¡£
6.´ò¿ªInternetÐÅÏ¢·þÎñ£¨IIS£©¹ÜÀíÆ÷£¬Ë«»÷ ´¦Àí³ÌÐòÓ³Éä ͼ±ê£¬½øÈëÁíÒ»¸öÒ³Ãæ¡£
7.ÔÚ´ò¿ªµÄ´¦Àí³ÌÐòÓ³Éä Ãæ°åÖÐ µã»÷ ÓÒ²à Ìí¼ÓÄ£¿éÓ³Éä °´Å¥ ½øÈëÒ»¸ö¶Ô»°¿
Ïà¹ØÎĵµ£º
[part1] http://download.csdn.net/source/2076258
[part2] http://download.csdn.net/source/2076272
[part3] http://download.csdn.net/source/2076276
[part4] http://download.csdn.net/source/2076283
[part02-04] http://www.ytgps.com/Images/nginx.rar
±¾ÎļþÌå»ý¹ý´ó·Ö4¸ö°ü£¬php-cgi+mysql+nginx.7z ......
0¡¢Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑÑ°±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô
×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ“º¯Êý”(Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ)¡£
¡¡¡¡1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í ......
if(validatorImage("d:\b.jpg"))
echo 'ÊǸöµÍË×ͼƬ<br />';
else
echo '²»ÊǵÍË×ͼƬ<br />';
function validatorImage($fileName){
$image = getImage($fileName);
$width = ImagesX($image);
$height = ImagesY($image);
$ycb = 0;
for($y=0;$y<$height;$y++){
for($x=0;$x<$widt ......
40ÌõÓÅ»¯php´úÂëµÄСʵÀý
1.Èç¹ûÒ»¸ö·½·¨Äܱ»¾²Ì¬£¬ÄǾÍÉùÃ÷ËûΪ¾²Ì¬µÄ£¬ËٶȿÉÌá¸ß1/4;
2.echoµÄЧÂʸßÓÚprint,ÒòΪechoûÓзµ»ØÖµ£¬print·µ»ØÒ»¸öÕûÐÍ;
3.ÔÚÑ»·Ö®Ç°ÉèÖÃÑ»·µÄ×î´ó´ÎÊý£¬¶ø·ÇÔÚÔÚÑ»·ÖÐ;
4.Ïú»Ù±äÁ¿È¥ÊÍ·ÅÄڴ棬ÌرðÊÇ´óµÄÊý×é;
5.±ÜÃâʹÓÃÏñ__get, __set, __autoloadµÈħÊõ·½·¨;
6.requiere_once( ......
½ñÌì2010-02-26£¬¿ªÊ¼ÎÒµÄphpѧϰ֮·£¬
¼Æ»®ÔÚδÀ´µÄÒ»¶Îʱ¼äÄÚ£¬ÓÃ×ã¹»¶àµÄʱ¼äºÍ¾«Á¦À´Ñ§Ï°Á˽âphp¡£
×öµ½¾«Í¨Àí½â»¹ÓоÍÊÇ×Ô¼º¶ÀÁ¢µÄ¿ª·¢³öһϵÁеÄÍøÕ¾£¬×÷Ϊ¶Ô×Ô¼ºÑ§Ï°µÄ¼ìÑé¡£
×öºÃ¼¼Êõ×ܽáºÍ¼¼ÊõÄÚºËÀí½â ......