0
我有一个PHP包括,与路径将[root]/Edge-animations/splash/publish/web/splash.php
,我的服务器上的有效路径。在我第一次尝试时,我得到一个错误,说道路是无效的;事实证明,我需要把整个服务器路径(沿/homepages/3/d426847376/htdocs/Edge-animations/splash/publish/web/splash.php
行)。纠正链接后,我尝试重新加载我的网页;它没有显示错误,但它没有显示它应该包含的文件。我的PHP语法如下:PHP包括没有出现
<?php include('/homepages/3/d426847376/htdocs/Edge-animations/splash/publish/web/splash.php'); ?>
并匹配我用于在另一页上工作的PHP包含的语法。我究竟做错了什么?
EDIT
所包含的文件是由边缘输出的HTML文件;我将扩展名从.html改为.php。这里是它的代码:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled</title>
<!--Adobe Edge Runtime-->
<meta http-equiv="X-UA-Compatible" content="chrome=IE8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome- frame/1/CFInstall.min.js"></script>
<script type="text/javascript" charset="utf-8" src="splash-v1_edgePreload.js"> </script>
<style>
.edgeLoad-Splash { display:none; }
</style>
<!--Adobe Edge Runtime End-->
</head>
<body style="margin:0;padding:0;">
<div id="Stage" class="Splash">
</div>
</body>
</html>
我也已经在链接中添加了括号和分号;它仍然不起作用。
什么呢splash.php输出? – 2012-08-08 05:31:07
你设置了什么级别的'error_reporting'? – 2012-08-08 05:31:29
您可能在包含的文件中遇到问题。有些东西可能会中止脚本,改变error_settings来隐藏错误等等。向我们显示这个包含文件的代码。 – 2012-08-08 05:32:39