07-13-2011, 12:19 PM
|
#4 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
Ok if it is just the back slashes that you want to get rid of, then you can use the stripslashes, like you've done. But you need to save the results of that call in a variable. Kind of like this:
PHP Code:
//now lets pull out the tmp data (old data) $ctoaddtmp = file_get_contents("../DOCS/originalsLISTtmp.txt"); //now input the old data to the file $ctoadd3 = stripslashes($ctoaddtmp . $displaytext); $myoldfile = "../DOCS/originalsLIST.txt"; file_put_contents ($myoldfile, $ctoadd3);
|
|
|
|