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条)

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容