PHP - 包括有时失败
I have my code:
include("top.php");
/* */ include("bottom.php");
Sometimes the bottom.php file is not included and the page looks really awkward. This happens on any page after the 500 Internal Server error. However this does also happen at random times.
The page fully loads after a refresh or two.
Does anyone know how I can fix this problem as it is very annoying.
Thank You
我有我的代码: p>
include(“ top.php “); p>
/ * * / include(” bottom.php“); 代码> PRE> blockquote>有时不包含bottom.php文件,页面看起来很尴尬。 在500内部服务器错误后的任何页面上都会发生这种情况 然而,这也会在随机时间发生。 p>
页面在刷新一两次后完全加载。 p>
有谁知道如何解决这个问题 因为它很烦人。 p>
谢谢 p> div>
try
include_once("top.php");
include_once("bottom.php");
include_once("top.php");
include_once("bottom.php");
Perhaps your scripts stops running before the execution of include("bottom.php");
. Check the lines above that and make sure to add arguments to die()
commands to identify the problem.