hello kirupians
i really appreciate your help
first of all i don’t know anything about php / shame on me and yes i searched the forums
i’m using a flash based shoutbox ( .php writing to and reading from an xml file ) works fine BUT as expected if your comment includes stuff like ampersand the whole comment box gets wiped out.
i suppose there has to be a line in the .php file replacing the ampersand with a different character or word like “and” / like a bad word filter
here is the php file
<?
$txt=fopen("clubshout.xml","r");
$gbfile="";
while($line=fgets($txt,1000))
$gbfile.=$line;
$name=stripslashes(strip_tags($name));
$comment=stripslashes(strip_tags($comment));
$gbfile="<u>$name </u>".date("<u>d.m.Y</u>")."<u>, </u>".date("<u>H:i</u>")."<u> h </u>"."
$comment
".$gbfile;
fclose($txt);
$txt=fopen("clubshout.xml","w");
fputs($txt,$gbfile);
?>
thank you for reading