´ÓȨÏÞÈëÊÖ½â¾öIIS+PHP»·¾³¹ÊÕÏ(ͼ)
ÔÚIIS»ù´¡ÉϽ¨Á¢PHP»·¾³×Ü»á³öÏÖÕâÑù»òÄÇÑùµÄÎÊÌ⣬ºÜ¶àÎÊÌâ¶¼±È½ÏÄѽâ¾ö£¬±ÊÕß×î½üÔÚ½¨Á¢IISÏÂPHP»·¾³Ê±¾ÍÓöµ½Á˳öÏÖ·ÃÎʳö´íµÄÎÊÌ⣬ËùÓÐphpÒ³ÃæÎļþÎÞ·¨Õý³£ÏÔʾ³öÀ´£¬¶øASP»¹ÓÐHTML¾²Ì¬Ò³ÃæÄܹ»Ë³Àû·ÃÎÊ¡£ÏÂÃæ¾ÍÇë¸÷λIT168µÄ¶ÁÕßËæÎÒÒ»Æð´ÓȨÏÞÈëÊÖ½â¾öIIS+PHP»·¾³¹ÊÕÏ¡£
Ò»¡¢¹ÊÕÏÏÖÏó£º
±ÊÕߴ»·¾³²ÉÓõIJÙ×÷ϵͳÊÇwindows XP£¬IISÊÇϵͳ×Ô´øµÄIIS 5£¬PHP°æ±¾ÊÇ5.2¡£°´ÕÕÍøÉϵIJ½Öè±ÊÕß°²×°PHP³ÌÐò²¢ÅäÖÃÁËIISÖеÄÏàÓ¦Ó³Éä²ÎÊý½¨Á¢ÁËPHP»·¾³£¬²¢ÇÒÉú³ÉÁËÃûΪindex.phpµÄÎļþ×÷Ϊ²âÊÔÓá£ÔÚʵ¼ÊʹÓÃÖÐÈ´·¢ÏÖÔÚ·þÎñÆ÷ÉÏͨ¹ýä¯ÀÀÆ÷·ÃÎÊhttp://127.0.0.1/index.phpºÍhttp://localhost/index.php¾ù³öÏÖ´íÎóÌáʾ£¬¾ßÌåÒ³ÃæÏÔʾΪ“ÎÞȨ²é¿´ÍøÒ³£¬»ùÓÚËùÌṩµÄƾ¾Ý£¬ÄúûÓÐȨÏ޲鿴´ËĿ¼»òÍøÒ³£¬HTTP´íÎó 401.3——·ÃÎʱ»×ÊÔ´ACL¾Ü¾ø”¡££¨Èçͼ1£©
ͼ1 µã»÷¿´´óͼ
ΪÁ˽øÒ»²½ÅŲé¹ÊÕϱÊÕßÓÖÔÚIISÖÐͨ¹ýÔÚĬÈÏÍøÕ¾Éϵã“ä¯ÀÀ”À´²é¿´£¬½á¹ûÊÕµ½µÄ·´À¡ÏûÏ¢ºÍÉÏÃæµÄÒ»Ñù£¬Ò²ÊÇ“HTTP´íÎó 401.3——·ÃÎʱ»×ÊÔ´ACL¾Ü¾ø”¡££¨Èçͼ2£©
ͼ2 µã»÷¿´´óͼ
È»¶øÔÚͬһ¸öÕ¾µãµÄÆäËûÒ³ÃæÎļþ£¬Ö»Òª²»ÊÇPHPÓïÑÔ½¨Á¢µÄ¶¼¿ÉÒÔÕý³£ä¯ÀÀºÍ²é¿´£¬°üÀ¨HTML¾²Ì¬Ò³ÃæºÍASP¶¯Ì¬ÍøÒ³Îļþ¡£
¶þ¡¢ÐÞ¸ÄÑéÖ¤·½Ê½½â¾öÎÊÌ⣺
¼ÈÈ»IIS·´À¡»ØµÄÐÅÏ¢ÊÇ“HTTP´íÎó 401.3——·ÃÎʱ»×ÊÔ´ACL¾Ü¾ø”£¬ËùÒÔ±ÊÕßÒ²Õë¶Ô·ÃÎÊȨÏÞ½øÐÐÅŲé¹ÊÕϹ¤×÷¡£
µÚÒ»²½£ºÔÚIISÖеÄĬÈÏÍøÕ¾ÉÏÓÒ¼üÑ¡Ôñ“ÊôÐÔ”À´²é¿´¸ÃÕ¾µãµÄÏà¹ØÊôÐÔÐÅÏ¢¡££¨Èçͼ3£©
ͼ3 µã»÷¿´´óͼ
µÚ¶þ²½£ºÔÚ´ò¿ªµÄĬÈÏÍøÕ¾ÊôÐÔ´¦ÎÒÃÇÕÒµ½“Ŀ¼°²È«ÐÔ”±êÇ©£¬È»ºóµã“ÄäÃû·ÃÎʺÍÉí·ÝÑéÖ¤¿ØÖÆ”ÅԱߵē±à¼”°´Å¥¡££¨Èçͼ4£©
ͼ4 µã»÷¿´´óͼ
µÚÈý²½£º±ÊÕßÔÚ“Éí·ÝÑéÖ¤·½·¨”´¦¿´µ½ÁËĬÈÏÇé¿öÏÂIISÊÇͨ¹ý½¨Á¢µÄIUSER_CHINA-914340F04ÒÔ¼°ÏàÓ¦µÄÃÜÂë·ÃÎÊIISÒ³ÃæÐÅÏ¢µÄ£¬Õâ¸öÕÊ»§Ò²ÊÇÓÉIIS×Ô¶¯´´½¨µÄ¡££¨Èçͼ5£©
ͼ5 µã»÷¿´´óͼ
µÚËIJ½£ºÎªÁË·½±ãÅŲé¹ÊÕÏ£¬ÌرðÊÇΪÁ˱ÜÃâȨÏÞ·ÃÎÊÔì³ÉµÄÎÊÌ⣬±ÊÕßÔÚ“Éí·ÝÑéÖ¤·½·¨”´¦µãÁË“¼¯³ÉWindowsÉí·ÝÑéÖ¤”£¬Õâ¸öÑ¡ÏîµÄÒâ˼¾ÍÊÇÔÚ±¾»ú»òÕßÍøÂçÓÐÓû§·ÃÎÊ
Ïà¹ØÎĵµ£º
½üÀ´Éè¼ÆÄ£Ê½·çÐУ¬MVCËæ´¦¿É¼û£¬PHPÁìÓòÒ²²»ÀýÍ⣬ºÜ¶àÂÛ̳¶¼¿ªÊ¼ÌÖÂÛÔÚPHPÖÐʹÓÃMVC¡£È»¶ø£¬M¡¢V¡¢CÔÚPHPÖе½µ×¸ÃÈçºÎʵÏÖ£¿MVCÕæµÄÊʺÏPHPô£¿ÕâÀïEasy¸ø³öһЩ×Ô¼ºµÄ˼¿¼¡£
½üÀ´Éè¼ÆÄ£Ê½·çÐУ¬MVCËæ´¦¿É¼û£¬PHPÁìÓòÒ²²»ÀýÍ⣬ºÜ¶àÂÛ̳¶¼¿ªÊ¼ÌÖÂÛÔÚPHPÖÐʹÓÃMVC¡£È»¶ø£¬M¡¢V¡¢CÔÚPHPÖе½µ×¸ÃÈçºÎʵÏÖ£¿MVCÕæµÄÊʺÏPHP ......
Ò» Apache µÄ°²×°
1 Apache µÄ°²×°
2 ͬÒâÐÒé
3 ½Ó×Å "Next "
4 Ìîд ÓòÃû(network domain) ·þÎñÆ÷µÄÃû³Æ (Server Name) ¹ÜÀíÕßÓÊÏä(Administrator's Email)
5 °²×°ÀàÐÍ
6 Ñ¡Ôñ°²×°Â·¾¶
7 µã»÷“install ” ¼ÌÐø
8 ¿ªÊ¼°²×°
9 °²×°½áÊø
¶þ MySqlµÄ°²×°
......
×ÜÌå¶øÂÛ£¬Ò»¸öºÃµÄIDEÐèÒªÂú×ãµÄ¹¦ÄÜ£º
¡·1.
»ù±¾µÄIDEÒªÇ󣺴úÂë¹ÜÀí£¬±à¼Æ÷µÄ¸÷ÖÖÖÇÄܹ¦Äܵȣ»
¡·2. ÔËÐкÍdebug£º¿ÉÒÔ±¾µØÔ¶³Ì·Ö±ðscriptºÍweb
page½øÐÐrunºÍdebug£»
¡·3. ÓÉÓÚPHP¿ª·¢µÄͨ³£¹ý³Ì¶¼ÊÇ£º´úÂëÔÚremoteµÄserverÉÏ£¬¿ª·¢ÈËÔ±µÄ»úÆ÷ÐèҪͨ¹ýFTP»òÕßSSHÁ¬½Óµ½serverÉϽøÐпª·¢ºÍµ÷ÊÔ£¬Òò´ËÈç¹ûIDEÔÚÈç ......
²»¹ýÕâ¸ö²»ÄܺͷÉÐſͻ§¶ËͬʱµÇ¼£¬¶þÕßÖ»ÄܵÇÒ»¸ö£¬Ö»Òª´úÂëÔÚdwÀï´ò¿ª£¬¿Í»§¶Ë¾ÍµôÁ˺ǺÇ~~~
<?php
/*
* Created on 2010-4-18
* MiaoPengFei
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$data["username"] = ;//ÕâÀïÌ ......
1.1
exit() º¯ÊýÊä³öÒ»ÌõÏûÏ¢£¬²¢Í˳öµ±Ç°½Å±¾¡£
Èç¹û status
ÊÇ×Ö·û´®£¬Ôò¸Ãº¯Êý»áÔÚÍ˳öǰÊä³ö×Ö·û´®¡£
Èç¹û status
ÊÇÕûÊý£¬Õâ¸öÖµ»á±»ÓÃ×÷Í˳ö״̬¡£Í˳ö״̬µÄÖµÔÚ 0 ÖÁ 254 Ö®¼ä¡£Í˳ö״̬ 255 ÓÉ PHP ±£Áô£¬²»»á±»Ê¹Óá£×´Ì¬ 0 ÓÃÓڳɹ¦µØÖÕÖ¹³ÌÐò¡£
1.2
301 Moved Permanently ¿Í»§ÇëÇóµÄÎĵµÔÚÆäËûµØ·½£¬ ......