Re: Kill Magic Quotes

From: Date: Fri, 08 Aug 2008 03:21:36 +0000
Subject: Re: Kill Magic Quotes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-277861@lists.php.net to get a copy of this message
Richard, Thank you for replying.
If you can't change php.ini, and if it's Apache, you maybe can just turn it off in .htaccess, far faster and easier than a PHP function.
I looked on the web and found this line: php_flag magic_quotes_gpc off ... and added it to my .htaccess file. But it doesn't seem to make a difference. I've set my scripts up so people can embed Google Maps on their pages. The problem I'm seeing now is that the output for the Google Map has all these additional double quotes that I don't know where they are coming from. Maybe it's not a magic quote issue? It looks like this: <iframe width=\"360\" height=\"360\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\"... (trimmed for brevity)
You are calling the removeSlashes, right?
I believe I'm calling it everywhere there is some text being inputted or outputted.
And, really, there is no reason for the restoreSlashes function to exist. If you ever think you need it, you're wrong.
I guess that makes sense. -- Dave M G

« previous php.general (#277861) next »