【发布时间】:2013-05-03 08:00:22
【问题描述】:
我在多个文件中有包含,我最近创建了一个新目录,但我的一些包含无法正常工作。
例如,我在位于 example.com/c/postpage.php 的 postpage.php 中包含此内容:
include '../includes/overall/header.php';
它进入根目录并包含 header.php 但我的问题是 header.php 还包含未包含的文件。
header.php 中的代码是:
include 'includes/head.php';
不工作
如果我将 header.php 更改为:
include '../includes/head.php';
然后它会破坏我网站的其余部分,而仅适用于 postpage.php
欢迎任何建议。
【问题讨论】: