Decipher Posted June 20, 2007 Share Posted June 20, 2007 Hi Everyone, I am using Header("Content-Type:application/rss+xml"); it works fine with Firefox 2.0 not with IE and If i use only Header("Content-Type:text/xml"); it works fine with IE not Firefox.. SO any way to solve this?? Link to comment https://forums.phpfreaks.com/topic/56451-browser-based-header-info/ Share on other sites More sharing options...
Dragen Posted June 20, 2007 Share Posted June 20, 2007 <?php $browser = (isset($_SERVER['HTTP_USER_AGENT'])) ? strtolower($_SERVER['HTTP_USER_AGENT']) : ''; if(stristr($browser, "msie")){ Header("Content-Type:text/xml"); }else{ Header("Content-Type:application/rss+xml"); } ?> Link to comment https://forums.phpfreaks.com/topic/56451-browser-based-header-info/#findComment-278817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.