Home >Backend Development >PHP Tutorial >php require 多重包含路径的有关问题

php require 多重包含路径的有关问题

WBOY
WBOYOriginal
2016-06-13 12:09:37796browse

php require 多重包含路径的问题
|-----fns/a.php     (require b.php  ,  require ../db/db.php)
|-----fns/b.php
|-----db/db.php
|-----page/index.php 
为什么在index.php中require ../fns/a.php
时,会说没有找到db.php,但是却能包含b.php
------解决思路----------------------
贴出错误信息看看。
------解决思路----------------------
用单引号引上了吗  require内部的。一个require只能包括一个地址

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn