View Single Post
Old 07-13-2011, 12:19 PM   #4 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

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);
tony is offline  
Reply With Quote
The Following User Says Thank You to tony For This Useful Post:
Tim Dobson (07-13-2011)