【发布时间】:2014-05-28 05:32:19
【问题描述】:
我的index.php 和“包含文件”有问题。我的 index.php 文件位于名为 mysite 的主文件夹内,其中的其余部分是 subfolders 以及各自的 .php 文件。除了index.php 之外,子文件夹文件运行良好。每次我在浏览器中预览时,包含文件都会弄乱。
index.php 文件的路径如下:
mysite/index.php
include files 的路径如下:
mysite/pages/include/header.php
这是包含包含文件的 HTML 文件:
<html>
<head>
<?php
include ("pages/include/headertop.php");
include ("pages/include/header.php");
include ("pages/include/nav.php");
?>
</head>
</html>
如果我在这里遗漏了什么,请纠正我。
顺便说一句,我正在使用 XAMPP。
谢谢你和更多的力量!
【问题讨论】: