如何 include 上一级目录下的PHP文件?? 如果确定文件都存在,且位置没有错,那就是权限问题,用ftp工具改成777 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我估计你的include的文件里还include了其他文件造成的两次include的目录层次不同例如,你的文件是index.php其中include("inc/a.php")而a.php中又include("b.php")这样就会出错 一.如果你用的是ii6,请在IIS的目录里"启用父目录"二.如果还有问题的话就尝试定义$paths$paths=".";include("$paths/art97/config.php"); 1、请确认文件../config.php真实存在且可读2、用include(realpath('../config.php'));载入 强!用 include(realpath('../config.php')) 第一次听说... include "/../config.php";include "./../config.php";都试试-_____________-!!! 你的目录结构可能是这样的:|-inc-|-main_info.php| |-……|-config.php|-index.php|-……如果在index.php中include main_info.php,而在main_info.php中又include config.php,那么在main_info.php中应该这样写:include('./config.php'); 干脆 if(file_exist('./config.php') include_once('./config.php'); if(file_exist('../config.php') include_once('../config.php');不过这样编程可不好 求一个读取数据库代码 发现strlen函数 的怪现象 关于跨域调用 合并图片问题:将水印图(白底)变透明合并在底图上 php数字转字符串问题 关于重定向的问题 post后的字符串变量的问题!!!!!!!!!!! 有谁教会我用表单呀! 鸟儿兄,有什么最好的办法实现上传下载。 紧急等待!! 大家,是怎样从数据库中调用栏目内容的? 在frssbsd下,怎么编译让PHP支持GD库,和mhash库
两次include的目录层次不同例如,你的文件是index.php
其中include("inc/a.php")
而a.php中又include("b.php")这样就会出错
二.如果还有问题的话就尝试定义$paths$paths=".";
include("$paths/art97/config.php");
2、用include(realpath('../config.php'));载入
用 include(realpath('../config.php')) 第一次听说...
include "./../config.php";
都试试-_____________-!!!
|-inc-|-main_info.php
| |-……
|-config.php
|-index.php
|-……如果在index.php中include main_info.php,而在main_info.php中又include config.php,那么在main_info.php中应该这样写:include('./config.php');
include_once('./config.php');
if(file_exist('../config.php')
include_once('../config.php');
不过这样编程可不好