Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 包括来自目录的文件_Php_Include - Fatal编程技术网

Php 包括来自目录的文件

Php 包括来自目录的文件,php,include,Php,Include,我已经制作了一个成员面板,一切正常,现在我想将成员面板集成到我的主站点(布局)中 所以我会解释我的指令。 我有一个ROOT文件夹,其中是我的index.php-ectra,我制作了一个名为member的目录,我在这里制作了我的成员面板,我想保存一个干净的ROOT目录。现在,当我想链接。此外,我还将布局拆分为3个header.phpleft content.phpright content.php您可以在root/include中找到它们 我得到了这个错误: 警告:require_once(../

我已经制作了一个成员面板,一切正常,现在我想将成员面板集成到我的主站点(布局)中

所以我会解释我的指令。 我有一个
ROOT
文件夹,其中是我的index.php-ectra,我制作了一个名为
member
的目录,我在这里制作了我的成员面板,我想保存一个干净的ROOT目录。现在,当我想链接。此外,我还将布局拆分为3个
header.php
left content.php
right content.php
您可以在
root/include
中找到它们

我得到了这个错误:
警告:require_once(../member/core/init.php):无法打开流:第16行的/home/u921594465/public_html/include/right-content.php中没有这样的文件或目录致命错误:require_once():无法打开必需的“../member/core/init.php”(include_path=”:/usr/lib php)在第16行的/home/u921594465/public_html/include/right-content.php中

我用过:
require_once'../member/core/init.php'


我在dir中使用名为
member
require_once“functions/sanitize.php”

使用
require_一次('/home/u921594465/public_html/member/core/init.php')

然后使用https。另外,它与此上下文无关。当我尝试执行
require\u一次时,会出现此错误('http://www.memearch.eu/member/core/init.php');
http://wrapper在服务器配置中被禁用