include包含文件路径不会写 a文件夹里有文件夹b和c,我现在想在b文件夹里的m文件里包含c文件夹里的n文件,应该怎么写?include(a/c/n.php),这样写对吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 m文件是运行文件?是的话在m文件中<?phpinclude("./c/n.php");?> include_once dirname(dirname(__FILE__)).'/c/n.php'; 按照daly2008说的不对啊Warning: include(./fckeditor/fckeditor.php) [function.include]: failed to open stream: No such file or directory in D:\wamp\www\shaoer\houtai\add_news.php on line 93 include_once '../c/n.php';是对的,其实我的问题是我在下载的fckeditor文件夹里引用fckeditor没问题,我就这样就可以了 include('fckeditor.php'); $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = dirname($sBasePath).'/'; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Create();问题是,我想在fckeditor文件夹外引用fckeditor的话,光修改include还不行是吧,请教我正确方法 只要修改include就行,只要保证路径正确,确定你需要的文件被加载进去就可以了。 比如函数外边有一个二维数组把参数传递到函数中 通过函数处理得到下面的值 请把函数写下 把数值用数组对应到字母,并用字母显示出来, 求助一個奇怪的問題 在线等, 急急急 PHPexcel有人很熟悉吗?能小弟一个忙吧,谢谢 关于正规式的一个问题 用户在网页停留的时间?急PHP 填写在表单的内容怎么样送入数据库呀? 一般BBS的登录form在?????.php里面,我想把它拿到首页index.html里面。有哪位大哥举例赐教小弟啊。 简单的难题,关于排序的 Flash用能调用php吗? opera下mouseover事件div边框显示不完全! 咨询mysql数据发布过后的问题!
是的话
在m文件中<?php
include("./c/n.php");?>
include_once dirname(dirname(__FILE__)).'/c/n.php';
Warning: include(./fckeditor/fckeditor.php) [function.include]: failed to open stream: No such file or directory in D:\wamp\www\shaoer\houtai\add_news.php on line 93
include('fckeditor.php'); $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = dirname($sBasePath).'/'; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Create();
问题是,我想在fckeditor文件夹外引用fckeditor的话,光修改include还不行是吧,请教我正确方法