PHP file adding extra characters to txt file

Hi there I’m a total noob to php and I’m trying to use it to write datat to a text file so flash can read it back in as news from a text file.

I got the php working and writing to the text file but… every where I use " or ’
it adds a \ before it

EXAMPLE
<font color="#0058C9" size=“10”><b>May '03</b></font>

Anyone know how to fix this?

hmm… from where are you sending the text to the php file to write to write to the text file?

cause “” character is an escape character… it tells flash or php that the following quote is part of the text and not something to close the text open and close quotes…

ex: PHP will read the following

“Too “many” quotes”

as

“Too” and then probably an error

but if u do this…

“Too “many” quotes”

it will read it right (as Too “many” quotes)

-Aditya
:thumb:

Actually, I fixed it I used

stripslashes()

but now my the info that is being written to my php file is showing up all garbled when I open the text file to make sure what I wrote to the file is correct…

Thanks for your help :slight_smile:

urlencode