php输出xml格式字符串(用的这个)

yipeiwu_com6年前PHP代码库
复制代码 代码如下:

<?php
header("Content-type:text/xml;charset=utf-8");
$aaa =<<<html
<?xml version='1.0' encoding='utf-8'?>
<SubFucParams>
<Version>1.0.0.0</Version>
<Publisher>d3e59f1d78f344c682bef3517a4b667f</Publisher>
<PublisherName>rong</PublisherName>
<Story>
<Type>.txt</Type>
<Title>
<MainTitle>www</MainTitle>
</Title>
<Author>
<Name>wwww</Name>
</Author>
<Source>移动采编</Source>
<DocContent>Wwwwwww</DocContent>
<StoryType>Text</StoryType>
</Story>
</SubFucParams>
html;
echo $aaa;
?>

相关文章

php压缩多个CSS为一个css的代码并缓存

复制代码 代码如下: <?php /* Compress multiple CSS files into one and cache for an hour. Use the sa...

php curl上传、下载、https登陆实现代码

1、curl下载 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "ftp://127.0.0.1/downtest.txt");...

PHP array操作10个小技巧分享

1、向array中添加元素 php是一个弱类型语言。因此不必象c语言那样为php array声明长度。向其中添加元素的过程也是声明和初始化的过程。 复制代码 代码如下: $capital...

php设置静态内容缓存时间的方法

本文实例讲述了php设置静态内容缓存时间的方法。分享给大家供大家参考。具体方法分析如下: 在利用百度工具作一个小测试时提示我们需要设置静态内容缓存时间了,我自己没有服务器权限操作,只能从...

PHP中iconv函数知识汇总

今天在修改论文在线的时候,遇到了iconv这个函数。学习一下 header('Content-Type: application/vnd.ms-excel;charset=UTF-8...