Newbie fwrite text file question
Posted: Sat Sep 11, 2004 5:32 pm
Sorry if this has been answered before somewhere... but it's a pain to actually search for it because of the character output.
Whenever I write to a text file using fwrite... instead of writing a single quotation mark... I get a backslash before every one. thusly:
<a href="http://www.targetwebsite" target="_blank">
Looks like
<a href=\"http://www.targetwebsite\" target=\"_blank\">
Huh?
I am using nl2br since I want people not to have to use html... but have it as an option. Am I doing something wrong... or do I need to find an replace all of these characters with a script?
It's a pain in the ass trying to search for \" as a problem in any search engine.
Any help would be much obliged.
pants
Whenever I write to a text file using fwrite... instead of writing a single quotation mark... I get a backslash before every one. thusly:
<a href="http://www.targetwebsite" target="_blank">
Looks like
<a href=\"http://www.targetwebsite\" target=\"_blank\">
Huh?
I am using nl2br since I want people not to have to use html... but have it as an option. Am I doing something wrong... or do I need to find an replace all of these characters with a script?
It's a pain in the ass trying to search for \" as a problem in any search engine.
Any help would be much obliged.
pants