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

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

WBOY
Release: 2016-06-13 12:09:37
Original
793 people have browsed it

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只能包括一个地址

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template