English 中文(简体)
PHP 投下内部服务器错误500的文字,在转成显示器时固定。
原标题:PHP script throwing internal server error 500, fixed when turning on display_errors
  • 时间:2012-04-25 08:19:44
  •  标签:
  • php

我今天谈到一个问题,即我的PHP软件包将在完成时(在海滩上)发出500个服务器错误。 该法典类似:

//many stuff here that work
echo "It reached here";
exit;

and I was always reaching the point before the exit; command. Doing a google search, I came across this post, which suggested turning on display_errors. I did it and the 500 error went away.

因此,我要问的是,没有人解释为什么会发生这种情况? https://stackoverflow.com/questions/1184001/weird-500-internal-server-error-firebug-php-display-errors-ajax” post描述了类似情况,但没有解释。

一如既往,预先感谢

最佳回答

看来,这部法典在 lo体内产生了一种 par差错。 这种错误并不打破编码执行,而是产生500个错误。

问题回答

这非常有可能使你获得500个地位法,但是由于PHP与浏览器的对应物一样, won升,显示其标准状况500个错误页。

你们需要核实实际地位法,以证实你已经获得500个错误。

在出现致命错误的情况下,购买力平价通常会发出500个地位法。 由于这一过程往往在当时失败(造成死亡),而且自那时以来,有些时候没有产生任何产出,网络服务器跳跃,使用户能够使用标准的500内部服务器-更动页。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签