kristopherWindsor Posted February 14, 2007 Share Posted February 14, 2007 Hi. I am writing a forum on PHP 4.3. When I type some text (a post at the forum), pass it to the PHP file through a web form, and write the text with fputs(), backslashes get added, preceding quotes and a few extra characters. How can I prevent this? [move] [/move] Link to comment https://forums.phpfreaks.com/topic/38405-solved-fputs-is-adding-backslashes-to-my-text-files-please-stop-it/ Share on other sites More sharing options...
hitman6003 Posted February 14, 2007 Share Posted February 14, 2007 Use stripslashes... http://www.php.net/stripslashes Link to comment https://forums.phpfreaks.com/topic/38405-solved-fputs-is-adding-backslashes-to-my-text-files-please-stop-it/#findComment-184202 Share on other sites More sharing options...
kristopherWindsor Posted February 14, 2007 Author Share Posted February 14, 2007 Thanks! Link to comment https://forums.phpfreaks.com/topic/38405-solved-fputs-is-adding-backslashes-to-my-text-files-please-stop-it/#findComment-184208 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.