We help IT Professionals succeed at work.
Get Started

How to remove back slashes when stripslashes() and str_replace() won't work

mwheeler_fsd
mwheeler_fsd asked
on
348 Views
Last Modified: 2012-06-21
Hello All;

I'm throwing in the towel and hoping and expert can help me with this one.

I'm trying to post a rather simple XML schema, but am having problems with the following line:

    $xmlcontent  = '<?xml version="1.0"?>';

when $xmlcontent actually get's assigned, it becomes: <?xml version=\"1.0\"?>

The people on the other end are saying the reason the transaction is failing is because of the back slashes. I've tried stripslashes() and str_replace(), but am having no luck. My magic quotes are set to on, but I thought stripslashes would override this.

Under the gun on this one, any help is appreciated.

Thanks in advance,
Mike
Comment
Watch Question
Top Expert 2005
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE