HTTP包装不支持可写连接(CodeIgniter问题?) [英] HTTP wrapper does not support writeable connections (CodeIgniter problem?)

查看:1345
本文介绍了HTTP包装不支持可写连接(CodeIgniter问题?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在PHP中使用XMLWriter类来生成XML。我在CodeIgniter工作。当我尝试输出XML,我得到这个错误(HTTP包装不支持可写连接)。这是什么意思,我需要做什么来解决它?我在这里使用此类: http://www.phpbuilder.com/board/ showthread.php?t = 10356853

I am trying to use the XMLWriter class in PHP to generate XML. I am working in CodeIgniter. When I try to output XML, I get this error (HTTP wrapper does not support writeable connections). What does it mean and what do I need to do to fix it? I am using this class here: http://www.phpbuilder.com/board/showthread.php?t=10356853.

推荐答案

你的输出调用是什么样子?该错误通常意味着您尝试保存到http网址,例如例如:

What's your output call look like? That error usually means you're trying to save to an http url, e.g. like:

$myobj->save('http://example.com/path/file.xml');

这通常会失败。这需要HTTP上传,但不提供执行一个必要的细节。它应该是一个PUT?一个帖子?接收服务器期望的字段名是什么? etc ...

which generally will fail. This requires an HTTP upload, but provides none of the specifics necessary to perform one. Should it be a PUT? A POST? What's the fieldname the receiving server is expecting? etc...

这篇关于HTTP包装不支持可写连接(CodeIgniter问题?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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