doo6568 2009-08-12 17:59
浏览 29
已采纳

IE7上的HTTP 500错误

For my development environment I recently moved to PHP 5.3 w/ fastCGI on IIS from php 5.2 w/ ISAPI on IIS and when I have an error (such as function name is incorrect) I'm used to PHP reporting back FATAL ERROR etc... to the browser. Intermittently instead of receiving the error I receive a HTTP 500. If browsing with firefox this does not occur.

It seems to be related to IE caching content-type or HTTP code something like that. My reasoning is that if I eliminate the chunk of offending code and refresh the page (in IE) and then place the offending code back in I will see the error message.

Does anyone know what I should look at?

display_errors is set to On....

Tried to add code in comments and it was ugly so i'm appending:
Sample Code: index.php <?php php_infowrong(); ?>

If I type in the URL of the website I get:

On Firefox I receive: PHP Fatal error: Call to undefined function php_infowrong() in D:\Web\pathtowebsite\index.php on line 2

On Internet Explorer I receive: HTTP 500 Internal Server Error

If I then change the index.php to <?php phpinfo(); ?> Then both IE and Firefox give the correct php_info page.

If I change the index.php back to it's original erronous form and refresh the page THEN IE will show: PHP Fatal error: Call to undefined function php_infowrong() in D:\Web\pathtowebsite\index.php

  • 写回答

2条回答 默认 最新

  • doupao6011 2009-08-12 22:38
    关注

    I don't know if this applies to IE7 but previous versions of IE had this "feature" where the browser would substitute its own error page if the one returned from the server was too short. I found this in the MS Knowledge Base, seriously ancient (IE4!), but might be worth a look.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题