Melli: aus "hallo" wird \"hallo\" ! wieso?

Beitrag lesen

Hallo Melli

Könnt Ihr euch denken warum?

Ja. Aber poste doch mal die Zeile wo das "Hallo" ausgegeben wird.

Gruss

Hallo,

EINLESEN:
$comment_text = trim($_POST['comment_text']);

$datei = fopen($comment_file, "a");
flock($datei, 2);
fwrite($datei, time()."|".$_SERVER["REMOTE_ADDR"]."|".$name."|".$comment_text."\n");
flock($datei, 3);
fclose($datei);
}

AUSGABE:
for ($i = 0; $i < $comment_total_entries; $i++)
{
$parts = explode("|", $data[$i]);
$kommentar = $parts[3];
echo $kommentar;
}

Das ist das ganze in Kurzform. Ich hoffe das hilft dir weiter. Es kann aber eigentlich nix mit der Ausgabe zu tun haben, weil es schon mit >"< statt >"< im Textfile gespeichert wird.

mfg Melli