bbs和first.php在同级目录下first.php<?
require_once("./bbs/include/common.inc.php");
include ("./bbs/index.php");
?>结果报错:
arning: require_once(./include/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\ComsenzEXP\wwwroot\bbs\index.php on line 15
require_once("./bbs/include/common.inc.php");
include ("./bbs/index.php");
?>结果报错:
arning: require_once(./include/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\ComsenzEXP\wwwroot\bbs\index.php on line 15
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
看出错信息应该是在这里面,index源代码是从它本身的目录引入文件的
你的first提了一级目录,嵌套加载就出错了
看出错信息应该是在这里面,index源代码是从它本身的目录引入文件的
你的first提了一级目录,嵌套加载就出错了 为什么first会提升目录级别啊,那要怎么解决呢?
那也别用这么复杂的系统来测试啊,自己写几个简单的echo,分别放到不同的目录,include一下不就看到效果了么