[function.require-once]:无法打开流:参数无效 [英] [function.require-once]: failed to open stream: Invalid argument

查看:82
本文介绍了[function.require-once]:无法打开流:参数无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我有这个错误

警告:require_once(C:\ wamp \www ours\connection.php)[function.require-once]:无法打开stream:第2行的C:\ wamp \\\\tours \ header.php中的参数无效


致命错误:require_once()[function.require]:打开失败需要'C:\ wamp \www ours\connection.php''(include_path =''.; C:\ php5 \\\'第2行的\\ header.php


可以随便帮帮我吧!

这是index.php的代码

Hi there i''m having this error
Warning: require_once(C:\wamp\www ours\connection.php) [function.require-once]: failed to open stream: Invalid argument in C:\wamp\www\tours\header.php on line 2

Fatal error: require_once() [function.require]: Failed opening required ''C:\wamp\www ours\connection.php'' (include_path=''.;C:\php5\pear'') in C:\wamp\www\tours\header.php on line 2

could any one help me please !
this is the code of the index.php

展开 | 选择 | Wrap | 行号

推荐答案

我发现与谷歌类似的问题:
I found a similar problem with google:

如果你得到未能打开流虽然你确定你的include_path是正确的,但检查你的open_basedir设置。

我花了2个小时试图弄清楚为什么虽然我的包含路径很好,但是php一直向我发送未能打开的信息。错误。

这只是因为我的include目录超出了open_basedir的范围,阻止php访问你根目录之外的文件(通常)。

我认为错误你发送open_basedir限制生效在这种情况下。
If you get "failed to open stream" although you are sure your include_path is correct, check your open_basedir setting.
I spent 2 hours trying to figure out why although my inclusion path was good, php kept sending me the "failed to open" error.
It was simply because my included directory was outside the scope of the open_basedir which blocks php from accessing file outside you root directory(usually).
I think the error you send the "open_basedir restriction in effect" in this case.



尝试删除C:\ wamp并将你的\转为/:

Try remove "C:\wamp" and turn your \ into /:

展开 | 选择 | Wrap | 行号


我删除了所有的C:\

现在我收到了这个错误

解析错误:语法错误,意外的T_STRING,期待C:\ wamp \ www \ tours \DataMgmt \DbMgmt.php在线的T_FUNCTION 6
I removed all the C:\
Now i''m getting this error
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in C:\wamp\www\tours\DataMgmt\DbMgmt.php on line 6


如果字符串用双引号(")括起来而不是" \t"成为水平标签。你有这个:
If the string is enclosed in double-quotes (") than "\t" becomes horizontal tab. You have this:
展开 | 选择 < span class =codeDivider> | Wrap | 行号


这篇关于[function.require-once]:无法打开流:参数无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆