日期:2014-05-17 浏览次数:20471 次
<?php header('Content-Type: text/xml'); echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; echo '<response>'; $name = $_POST['name']; echo 'hello '.htmlentities($name); echo '</response>'; ?>
//这儿是否有HTML?有输出? <?php header('Content-Type: text/xml');
------解决方案--------------------
XML和HTML不能同时输出!
......
echo '</response>';
exit;
?>