Rumah >pembangunan bahagian belakang >tutorial php >PHP无法显示XML页解决办法
PHP无法显示XML页
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?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');<br /><font color="#e78608">------解决方案--------------------</font><br>XML和HTML不能同时输出!<br><br>......<br> echo '';<br>exit; <br>?><br><br><br><br><div class="clear"> </div>