For some reason, all my quotes are being escaped and displayed as \\\". Previously, it was okay. Then I looked at phpinfo() and saw that my magic_quotes_gpc is turned on. However, I cannot find the di
Magento is escaping apostrophes when magic_quotes_gpc is set to off. When I set magic_quotes_gpc to on, Magento stops inserting slashes. It\'s completely backwards.
I have $_POST variables incoming in fromtags that have slashes on quotes. I know that magic quotes are off, and use the if (get_magic_quotes_gpc()) statement to stripslashes in case they are. However,
I am needing to write portable code that will run on a shared server with magic_qoutes_gpc enabled and I am unable to change that in php.ini or .htaccess. (the server is running php 5.2)
Consider file a.php: <?php echo $_GET[\'a\']; ?> a.php?a=abcd\' prints abcd\\\'. I think PHP auto escape quotes, but I couldn\'t find a document about this.
To counteract magic quotes I have this function set at the top of every page. However it seems to be affecting when I have an array in a form <input type=\"checkbox\" name=\"check[]\" />.
Okay my hosting company has magic_quotes_gpc turned ON and I coded my PHP script using stripslashes() in preparation of this. But now the hosting company says its going to turn magic_quotes_gpc OFF an
Ok, so here\'s the issue I\'ve run into.On some of our production systems, we have magic quotes gpc enabled.There\'s nothing I can do about that.So, I\'ve built my request data handing classes to comp
I\'ve seen dozens of PHP snippets that go like this: function DB_Quote($string) { if (get_magic_quotes_gpc() == true)