代码
function xml_out($content) {
global $_SC;
@header("Expires: -1");
@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
@header("Pragma: no-cache");
@header("Content-type: application/xml; charset=$_SC[charset]");
echo '<'."?xml version=\"1.0\" encoding=\"$_SC[charset]\"?>\n";
echo "<root><![CDATA[".trim($content)."]]></root>";
exit();
}
global $_SC;
@header("Expires: -1");
@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
@header("Pragma: no-cache");
@header("Content-type: application/xml; charset=$_SC[charset]");
echo '<'."?xml version=\"1.0\" encoding=\"$_SC[charset]\"?>\n";
echo "<root><![CDATA[".trim($content)."]]></root>";
exit();
}
摘自 uchome2.0 系统