Warning: include_once(./include/main.inc.php) [function.include-once]: failed to open stream: failed to open stream: No such file or directory in
Fatal error: main(): Failed opening required ‘./Config.php’ (include_path=’.;c:php4pear’) in D:wwwrootCoreConfig.php on line 13
出现这个的问题是因为我们inlcude的路径不对了,只要我们把路径改对就可以了。
Fatal error: main(): Failed opening required ‘./Config.php’ (include_path=’.;c:php4pear’) in D:wwwrootCoreConfig.php on line 13
shopex主机问题描述
Warning:
require(/core/include_v5/adminCore.php) [function.require]: failed to open stream:
No such file or directory in D:wwwrootbeisososhopadminindex.php on line 13
Fatal error:
require() [function.require]:
Failed opening required “/core/include_v5/adminCore.php” (include_path=”.;C:php5pear”)
三、shopex主机解决方案
给D:和D:wwwroot 一个everyone可读权限,只在这两个位置加权限就可以了,不要附加到下一级目录!
命令如下:
cacls d: /e /g everyone:r
cacls d:wwwroot /e /g everyone:r
如何解决failed to open stream: No such file or directory
作者: igoogler 发布时间: 2009-07-06
作者: zhenglm006 发布时间: 2009-07-06
使用file(./data.txt);但是总是输出failed to open stream: No such file or directory
请问如何解决。文件就在我的文件夹下的根目录下,地方应该是没错,但是就是访问不了。
作者: igoogler 发布时间: 2009-07-06
作者: zhenglm006 发布时间: 2009-07-06
作者: zhenglm006 发布时间: 2009-07-06
作者: lukui306 发布时间: 2009-07-06
我去掉./试过了,不行。我实际的代码是加了””的。
lukui306
路径问题,我现在把文件放在workdir的根目录下面,所以./应该是可以的吧。
我google了一下网上提到的几个解决方法:
1)由于workdir的权限没有设置正确,我的登录用户是admin,所以应该不存在这个问题
2)有人配置了一下php.ini中的include_file=“.:文件所在目录”成功了
但是我都实验了一下,也不行。
另外补充一点,这段code是ezpdf的readme.php代码。data.txt是它的数据源。
具体的代码是在
http://www.ros.co.nz/pdf/downloa … esAndFonts_009e.zip。
不过大家可以不用看
因为我现在使用了一个最简单的语句
file(“./data.txt”) 都通不过。
Warning: file(./date.txt) [function.file]: failed to open stream: No such file or directory in E:\wamp\www\TEUL\testpdf.php on line 2
我用的环境是wamp+php 5.2.9-1
是不是配置上有问题呢?
作者: igoogler 发布时间: 2009-07-06
我重新关掉IE,然后在原来的代码上再随便加了句代码。<?php echo ‘test’>
然后就不会报错了。我怀疑是IE把我原来的页面都还缓存起来了,每次都我在Dreamweaver中按F12的时候,仍然使用的是旧的页面。晕啊~~~,有没有人碰到过这种情况啊~~~我碰到好多次了。
作者: igoogler 发布时间: 2009-07-06
路径问题!!你把你当前文件运行的路径打出来看看:
echo __FILE__;
作者: suncuan 发布时间: 2009-07-06
转载请注明:落伍老站长 » 解决:failed to open stream: No such file or directory in