您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php 远程读取xml

2025/8/4 5:11:36发布25次查看
本篇文章给大家分享的内容是关于php 远程读取xml ,有着一定的参考价值,有需要的朋友可以参考一下
$fp=fsockopen("xxx.xxx.com", 80, $errno, $errstr, 30); if($fp){ $out = "get /abc.xml?key=value http/1.1\r\n"; $out .= "host: xxx.xxx.com\r\n"; $out.= 'user_agent: xml-rpc client\r\n'; $out.='content-type: text/xml\r\n'; $out .= "connection: close\r\n\r\n"; fwrite($fp,$out); while(!@feof($fp)){ $result.=@fgets($fp,1024); } fclose($fp); } echo $result;
相关推荐:
php读取数据的基本操作
以上就是php 远程读取xml 的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product