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就行,只要保证路径正确,确定你需要的文件被加载进去就可以了。 新手求助 php 获取目录下的子目录文件? 菜鸟求助 从前台表单获取值输入数据库中 求解答 三级菜单如果对最后一级进行判断 字符串操作 Windows下的php用IIS做Web服务好还是用Apache好! 上海php收入排行 有没有这么一种技术??? 急~~~~~~~~~~~~~~~~~~~~~~~救! 高分求php+Access的聊天室,bbs,新闻管理的源码!不少于1000分!~ 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还不行是吧,请教我正确方法