Warum kann der folgende php-Quelltext
1 | <?php
|
2 | $filename = "Test2.txt";
|
3 | $handle = fopen($filename, "r");
|
4 | $Inhalt = trim(file_get_contents( $filename));
|
5 | fclose($handle);
|
6 | echo $Inhalt;
|
7 | ?>
|
nicht den Inhalt der folgenden Textdatei "Test2.txt" anzeigen
<node id=@3886170127@ visible=@true@ version=@3@ changeset=@138637132@
timestamp=@2023-07-17T19:49:04Z@ user=@bufredi55@ uid=@19021816@
lat=@50.1662321@ lon=@10.1017258@/>
<node id=@3903366035@ visible=@true@ version=@2@ changeset=@43481505@
timestamp=@2016-11-08T08:31:39Z@ user=@geodreieck4711@ uid=@479256@
lat=@50.1667447@ lon=@10.0947630@/>
<node id=@3933816027@ visible=@true@ version=@1@ changeset=@36444804@
timestamp=@2016-01-08T13:27:55Z@ user=@Jaeger52@ uid=@435545@
lat=@50.3546375@ lon=@10.2321218@>
<tag k=@communication:bos@ v=@no@/>
<tag k=@communication:gsm-r@ v=@no@/>
<tag k=@communication:microwave@ v=@no@/>
<tag k=@communication:mobile_phone@ v=@yes@/>
<tag k=@man_made@ v=@mast@/>
<tag k=@tower:type@ v=@communication@/>
</node>
Bei anderen Textdateien funktioniert das doch auch! Warum kann es diese
Datei nicht in einen String einlesen? Ist mein php kaputt?