English 中文(简体)
因要求而留下的错误不明显
原标题:The error thrown by require not visible
最佳回答

页: 1 阁下 Fatal Error:

<?php
require("boom.php"); // no such file exits in real
?>
问题回答

或许,你的购买力平价显示,ors器被弃,这意味着你不会看到客户产出中的错误信息。 你们应当能够在你们的发展中环境中创造这一环境。

如果你们有这样的东西,至少看到失败:

<html>

<body>
<p>Before require</p>
<?php require( does-not-exist ); ?>
<p>After require</p>
</body>

</html>

如果该文本有某些实际产出,则你认为,只有前文要求的案文是产出,在<代码>要求(<>失败时,该文字将终止执行。

有了你的文本,你没有明显的产出,必须看一看你的浏览器中的页面来源,看看看看看看看看看塔是否有<代码></上;</html>。

Maybe display_errors is disabled. You can check this by calling phpinfo().

Try to place

ini_set( display_errors ,1);
error_reporting(E_ALL|E_STRICT);

在你的发言稿一开始,就将错误直接放在屏幕上(仅供开发系统推荐)。

http://www.ohchr.org。 Doh! 我回答达米恩。





相关问题
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 ...

热门标签