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在服务器配置中被禁用