PDA

View Full Version : PHP question...



Kajinku
July 19th, 2004, 12:01 PM
This is probably a simple question for a PHP guru, but I couldn't find the answer to my question using Google.

Anyways, here's the deal:

The idea is that the user can modify the pages of his flash-site using a very simple PHP thingy I made. His flash website imports HTML from TXT-files.
The problem I'm having is that PHP adds backslashes here and there in the HTML code, which flash cannot read. So now, I'm trying to *remove* all the backslashes from the string before updating the TXT-file.


str_replace("\","",$string);

^ That didn't work. Any ideas? Pretty please? :)

Thanks in advance!

Yeldarb
July 19th, 2004, 12:02 PM
Try using
stripslashes($yourVariableOrString);

Kajinku
July 19th, 2004, 12:12 PM
That works fine! Thanks! :thumb:

Yeldarb
July 19th, 2004, 12:17 PM
No problem :)