if(isset($_SERVER["HTTP_ACCEPT"]) && stristr( $_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")){ header("Content-type: application/xhtml+xml"); }else{ header("Content-type: text/html"); } ?>