<?php
header("Content-Type:text/xml");
echo "<?xml version=\"1.0\" encoding=\"GB2312\"?>";
?>
这样写的,但是头信息还是text/html
怎么解决,问题出在什么地方?
header("Content-Type:text/xml");
echo "<?xml version=\"1.0\" encoding=\"GB2312\"?>";
?>
这样写的,但是头信息还是text/html
怎么解决,问题出在什么地方?
Date: Tue, 15 Nov 2011 01:09:49 GMT
Server: Apache/2.2.6 (Win32) PHP/5.2.5
X-Powered-By: PHP/5.2.5
Content-Length: 39
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/xml