Chinaunix

标题: 问题求助!Unable to open remote file for writing. [打印本页]

作者: fengbuyu    时间: 2005-07-03 15:56
标题: 问题求助!Unable to open remote file for writing.
?>;
<?php
$filename = "http://127.0.0.1/users.txt";
$fp = fopen ($filename, "w";
if (!$fp) {
    echo "<p>;Unable to open remote file for writing.\n";
    exit;
}
fputs ($fp, $_SERVER['HTTP_USER_AGENT'] . "\n";
fclose ($fp);
?>;

提示错误:
Warning: fopen(http://127.0.0.1/users.txt): failed to open stream: HTTP wrapper does not support writeable connections. in D:\webser\Apache2\htdocs\test1.php on line 131

Unable to open remote file for writing.
作者: HonestQiao    时间: 2005-07-11 23:23
标题: 问题求助!Unable to open remote file for writing.
提示的非常清楚了,为什么不看看那:
HTTP wrapper does not support writeable
(HTTP 模式不支持写操作)

虽然我们是中国人,我们热爱祖国。
但是要搞计算机的这些鬼东西,还是最好学学简单的英文。
作者: lares    时间: 2005-07-12 00:53
标题: 问题求助!Unable to open remote file for writing.
楼上, 文明跟语言无关! 计算机不是什么鬼东西, 它引导了新的科技革命!

_-_!. 酒喝多了, FQ一下
作者: spiceboy    时间: 2005-07-12 09:32
标题: 问题求助!Unable to open remote file for writing.
你有没有搞错呀?
要是这样的文件都可以写
那你怎么不把新浪首页给改掉呀?
作者: HonestQiao    时间: 2005-07-12 09:49
标题: 问题求助!Unable to open remote file for writing.
原帖由 "lares" 发表:
楼上, 文明跟语言无关! 计算机不是什么鬼东西, 它引导了新的科技革命!

_-_!. 酒喝多了, FQ一下



大哥你的酒喝得很深了,所以之看到了半句,没有看到:

虽然我们是中国人,我们热爱祖国。
但是要搞计算机的这些鬼东西,还是最好学学简单的英文。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2