Re: Escaping '
| From: | Daniel Brown | Date: | Fri, 22 Jul 2011 15:54:01 +0000 |
| Subject: | Re: Escaping ' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314161@lists.php.net to get a copy of this message | ||
On Fri, Jul 22, 2011 at 11:48, Floyd Resler <fresler@adex-intl.com> wrote:
> I did a fresh install of PHP on a new server. I had gotten used to PHP automatically adding a
> backslash before single quotes when form data is submitted. It seems that is shut off in my new
> install. How do I turn it back on?
That's magic quotes, and it's been deprecated for quite some time,
and slated for complete removal. While you shouldn't rely on it, if
you absolutely need to, just re-enable it in php.ini, .htaccess, or in
your code.
See more: http://php.net/manual/en/security.magicquotes.php
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/