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

´ÓȨÏÞÈëÊÖ½â¾ö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Éí·ÝÑéÖ¤”£¬Õâ¸öÑ¡ÏîµÄÒâ˼¾ÍÊÇÔÚ±¾»ú»òÕßÍøÂçÓÐÓû§·ÃÎÊ


Ïà¹ØÎĵµ£º

PHP ³£Á¿ dirname(__file__) ѧϰ


PHP ³£Á¿ dirname(__file__)
__FILE__ :±»³ÆΪPHPħÊõ³£Á¿ ,·µ»Øµ±Ç°Ö´ÐÐPHP½Å±¾µÄÍêÕû·¾¶ºÍÎļþÃû,°üº¬Ò»¸ö¾ø¶Ô·¾¶
1£©dirname(__FILE__) º¯Êý·µ»ØµÄÊǽű¾ËùÔÚÔڵķ¾¶¡£   
±ÈÈçÎļþ b.php °üº¬ÈçÏÂÄÚÈÝ£º    
         <?php ......

MVCÕæµÄÊʺÏPHPô£¿


½üÀ´Éè¼Æģʽ·çÐУ¬MVCËæ´¦¿É¼û£¬PHPÁìÓòÒ²²»ÀýÍ⣬ºÜ¶àÂÛ̳¶¼¿ªÊ¼ÌÖÂÛÔÚPHPÖÐʹÓÃMVC¡£È»¶ø£¬M¡¢V¡¢CÔÚPHPÖе½µ×¸ÃÈçºÎʵÏÖ£¿MVCÕæµÄÊʺÏPHPô£¿ÕâÀïEasy¸ø³öһЩ×Ô¼ºµÄ˼¿¼¡£
½üÀ´Éè¼Æģʽ·çÐУ¬MVCËæ´¦¿É¼û£¬PHPÁìÓòÒ²²»ÀýÍ⣬ºÜ¶àÂÛ̳¶¼¿ªÊ¼ÌÖÂÛÔÚPHPÖÐʹÓÃMVC¡£È»¶ø£¬M¡¢V¡¢CÔÚPHPÖе½µ×¸ÃÈçºÎʵÏÖ£¿MVCÕæµÄÊʺÏPHP ......

ÎÒµÄphpÖ®ÂÃ

    ²»Öª´ÓʲôʱºòÃÔÁµÉÏÁËphp£¬ÔÚëüëÊÖ®ÖпªÊ¼ÁËÎҵıà³Ì֮·.......
    Ìý˵csdn¸ßÊÖÈçÔÆ£¬ºÜÏë½áʶ־ͬµÀºÏµÄÅóÓÑ£¬ÎÞÐֵܲ»±à³Ì£¬Ï£Íû´ó¼ÒÒ»Æð¿ªÍØÎÒÃǵÄÇ°³Ì£¬±à³Ì֮·£¬²»Ôٹµ¥Ç°ÐÐ!
    ³É¹¦Ö®Â·ÍäÇú¶øÂþ³¤£¬ÏàÐŲ»Çü²»ÄÓµÄŬÁ¦£¬ÏàÐÅÄêÇᣬʤÀûÒ»¶¨ÊôÓÚÎÒÃÇ£¬¼Ó ......

PHPµÄ±àÂë¹æ·¶


PHP File Îļþ¸ñʽ
³£¹æ
¶ÔÓÚÖ»°üº¬ÓÐ PHP ´úÂëµÄÎļþ£¬½áÊø±êÖ¾£¨"?>"£©ÊDz»ÔÊÐí´æÔڵģ¬PHP×ÔÉí²»ÐèÒª£¨"?>"£©, ÕâÑù×ö, ¿ÉÒÔ·ÀÖ¹ËüµÄĩβµÄ±»ÒâÍâµØ×¢ÈëÏàÓ¦¡£
ÖØÒª£º ÓÉ __HALT_COMPILER() ÔÊÐíµÄÈÎÒâµÄ¶þ½øÖÆ´úÂëµÄÄÚÈݱ» Zend Framework ÖÐµÄ PHP Îļþ»òÓÉËüÃDzúÉúµÄÎļþ½ûÖ¹¡£ Õâ¸ö¹¦ÄܵÄʹÓÃÖ»¶ÔһЩ ......

tommy frameworkÒ»¸ö ¼òµ¥Ò×ÓÃÒ×ÓÚÀ©Õ¹µÄphp¿ò¼Ü

 
PHP×÷ΪÓŵãºÍȱµã¶¼·Ç³£Í»³öµÄ±à³ÌÓïÑÔ£¬ÊÇ·ñÍƳçʹÓÿò¼Ü£¬ÖÁ½ñÈÔ´æÓÐÒìÒ顣Ȼ¶øÔÚÕâ¸ö×·Çó¾­¼ÃЧÒæ×î´ó»¯µÄ½ñÌ죬½µµÍÈí¼þ¿ª·¢³É±¾£¬Ëõ¶Ì¿ª·¢Ê±¼ä£¬ÒѳÉΪ±ØȻ֮ÊÆ£¬PHP³ÌÐò¿ª·¢Ê¹Óÿò¼ÜÒ²¾Í˳Àí³ÉÕ¡£
     ÁзòÍжû˹̩Ôø˵£º“ÐÒ¸£µÄ¼ÒÍ¥ÊÇÏàËƵģ¬²»ÐҵļÒÍ¥¸÷Óи÷µÄ²»ÐÒ”¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ