PDA

Click to See Complete Forum and Search --> : Why does php add backslashes to special chars?


Jmacp
Jan 30th, 2009, 06:21 AM
So if i posted some special chars through html to a php script like, '@'# and echo it out i get an output of \'@\'#

What do i need to change in php.ini or what code can i add to the php to stop this?

I have php ver 5.2.8.

kows
Jan 30th, 2009, 02:12 PM
you could use stripslashes(), but magic_quotes_gpc is the directive you're looking for in the configuration file.