renj0806 Posted February 23, 2007 Share Posted February 23, 2007 <?php $content = $_GET['content']; $fp = fopen("Test.txt", "a+"); fwrite($fp, $content); fclose($fp); ?> A simple file writing script. The textarea contains this text : Output "Output" But the Test.txt has this contents: Output \"Output\" How can i save a textarea content with double quotes(") not being escaped(\") in the textfile? Link to comment https://forums.phpfreaks.com/topic/39814-solved-saving-textarea-content-to-textfile-character-problem/ Share on other sites More sharing options...
JBS103 Posted February 23, 2007 Share Posted February 23, 2007 Are you looking for stripslashes() maybe? Link to comment https://forums.phpfreaks.com/topic/39814-solved-saving-textarea-content-to-textfile-character-problem/#findComment-192307 Share on other sites More sharing options...
renj0806 Posted February 23, 2007 Author Share Posted February 23, 2007 Didnt know about that function. Anyways, thanks! Link to comment https://forums.phpfreaks.com/topic/39814-solved-saving-textarea-content-to-textfile-character-problem/#findComment-192311 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.