| 1) why are you using addslashes()? that is only for escaping special characters for sql.
2) try writing this string: "quote \" test"
does it work? if so, your problem is not fwrite. i'm guessing you have some sort of automatic quote escaping running on submitted user data (magic_quote_runtime or similar) that's screwing up your strings. print out your string, so you can see what you're really trying to fwrite. |