简体   繁体   English

我正在尝试将一个 PHP 文件包含到另一个文件中,来自不同的文件夹

[英]I am trying to include a PHP file into another file, from different folders

am trying to include a file that is in a folder into another file that is within a different folder in php我正在尝试将文件夹中的文件包含到 php 中不同文件夹中的另一个文件中

include ('inc/config.php'); //from config folder
include('design/footer.php');// from design folder 

including these two files into admin.php that belongs to admin folder.将这两个文件包含在属于 admin 文件夹的 admin.php 中。

So what is your problem?那么你的问题是什么? Attach your file structure here, so people can gues what you want.在此处附加您的文件结构,以便人们可以猜测您想要什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM