I'am using these codes to write a submitted text to a .txt file: $datastring = $data . "</BR>" . "__________________________________________________________" . "</BR>"; $fo = fopen($et,'a'); if(!$fo) { die("Cannot open $et"); } if(!fwrite($fo,$datastring)) { die("Cannot write to $et"); } fclose($fo); Code (markup): But texts like says, "Hmm, this person looks familiar." gets replaced by something like says, / "Hmm, this person looks familiar." / when written to the text file and it appears the same when read through a PHP file to a .html file.
if it is always / then " use str_replace() http://us3.php.net/str_replace to replace all /" with "....what's happening is the escape codes for " are being used for some reason.