Weiß nicht, ob das noch interessant für Dich ist, Deine Anfrage ist ja schon 'ne Weile her. Aber ich würd' sagen so:
PHP-Code:
<?php
$acceptHeader = $_SERVER['HTTP_ACCEPT'];
if (strpos($acceptHeader, "application/vnd.wap.xhtml+xml") !== false)
header('Content-type: application/vnd.wap.xhtml+xml');
else if (strpos($acceptHeader, "application/xhtml+xml") !== false)
header('Content-type: application/xhtml+xml');
else
header('Content-type: text/html');
?>
<body>
<p>Hello world. Welcome to our XHTML MP tutorial.</p>
</body>
</html>