matrix1977: (Apache) Content-Type-Header bei PHP-Skripten

Beitrag lesen

Hallo, VIELEN DANK, das du mir immer noch hilfst !!!! SUPER !!!
Also:
Wenn ich die header-Anweisung direkt ins Script mit einbaue, dann schaut es so bei mir aus:

<?php
 header("Content-type: application/xhtml+xml");
 print "<?xml version="1.0" encoding="UTF-8"?>\n";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">

<head>
...

das Ganze führt bei mir aber zu folgendem Fehler, wenn ich die php-Datei aufrufe von meinem Webserver:

Warning: Cannot modify header information - headers already sent by (output started at /home/www/ncg155/html/matrix1977/Version_3/test_float.php:1) in /home/www/ncg155/html/matrix1977/Version_3/test_float.php on line 2

Die Idee, direkt in die .htaccess Datei
php_value default_mimetype "application/xhtml+xml" oder
<IfModule mod_php4.c> php_value default_mimetype "application/xhtml+xml" </IfModule>
reinzuschreiben führt zum totalen Crash :-)

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@phoebe.netclusive.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

An die PHP_INI_ALL komm ich nicht heran, netclusive (mein Webhoster) lässt mich nicht, jedenfalls nicht, dass ich wüßte.
Über phpinfo() sehe ich, dass der default_mime_type text/html ist.
Wie würde die Syntax für den ini_set Befehl aussehen ?
etwas so ?
ini_set("default_mimetype","application/xhtml+xml") ?

Gruß
matrix1977