Forum Moderators: coopster

Message Too Old, No Replies

xml_parse with magic quotes

Is it possible?

         

johnnie

11:32 pm on Sep 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello,

Why does xml_parse mess up when it encounters a 'magic quote'?

And what can i do to circumvent this problem? I am not in a position to change the setting in php.ini (virtual server), so I have to code my way around it.

Do I have to write my own xml parsing routine?

IanKelley

2:48 am on Sep 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use the stripslashes() function to remove the effects of magic quotes.

However... If efficiency is an issue it is likely that a well written custom XML parsing routine will outpreform the built in parser.