关于Warning: file_exists() 的错误

zrp777 2014-06-01 02:25:41
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/2014/06/01/) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\1.php on line 43

Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(\www) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\1.php on line 44

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/2014/06/01/14016016695.jpg) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\1.php on line 47

Warning: fopen(/14016016695.jpg) [function.fopen]: failed to open stream: Operation not permitted in D:\DedeAMPZ\WebRoot\Default\1.php on line 47

Warning: fwrite(): supplied argument is not a valid stream resource in D:\DedeAMPZ\WebRoot\Default\1.php on line 48

Warning: fclose(): supplied argument is not a valid stream resource in D:\DedeAMPZ\WebRoot\Default\1.php on line 49


到底是哪里的错误。前几天我设置php_curl.dll,最后没成功我把这个php_curl.dll删除了,最后还原了php.ini,我感觉应该是我设置php_curl.dll引起的错误,不知道那里错了
...全文
1060 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
傲雪星枫 2014-06-05
  • 打赏
  • 举报
回复
引用 楼主 zrp777 的回复:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/2014/06/01/) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\1.php on line 43 Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(\www) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\1.php on line 44 Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/2014/06/01/14016016695.jpg) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\1.php on line 47 Warning: fopen(/14016016695.jpg) [function.fopen]: failed to open stream: Operation not permitted in D:\DedeAMPZ\WebRoot\Default\1.php on line 47 Warning: fwrite(): supplied argument is not a valid stream resource in D:\DedeAMPZ\WebRoot\Default\1.php on line 48 Warning: fclose(): supplied argument is not a valid stream resource in D:\DedeAMPZ\WebRoot\Default\1.php on line 49 到底是哪里的错误。前几天我设置php_curl.dll,最后没成功我把这个php_curl.dll删除了,最后还原了php.ini,我感觉应该是我设置php_curl.dll引起的错误,不知道那里错了
打开php.ini文件,搜寻open_basedir =,然后在行的最前面加; 即;open_basedir = 便可解决问题。
www_7di_net 2014-06-02
  • 打赏
  • 举报
回复
貼出你的代碼來看下
xuzuning 2014-06-01
  • 打赏
  • 举报
回复
被访问的文件越出了 open_basedir 指定的范围 若无其他特殊需要,注释掉就好了

20,359

社区成员

发帖
与我相关
我的任务
社区描述
“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
phpphpstorm 技术论坛(原bbs)
社区管理员
  • 开源资源社区
  • phpstory
  • xuzuning
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧