Make chrome display an rss feed (2)

家住魔仙堡 提交于 2019-12-01 11:11:20

Try changing the header to application/xml

This worked for me by changing the header:

<?php 
header('Content-Type: application/xml');
echo file_get_contents('http://web.student.tuwien.ac.at/~e0250890/rsstest/test.php');
?>

Mozilla accepts a whole range of headers

text/xml,application/xml,application/rss+xml,application/atom+xml

But it seems chrome accepts only text/xml or application/xml

Not 100% sure why, perhaps you should take it up with google ;p

Add doctype.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!