Re: removing slashes from template file
| From: | Chris Adams | Date: | Fri, 13 Apr 2001 03:17:24 +0000 |
| Subject: | Re: removing slashes from template file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48404@lists.php.net to get a copy of this message | ||
On Thu, Apr 12, 2001 at 09:01:22PM -0700, Franklin Hays wrote:
>
> Chris,
>
> This is correct. The provider has the following:
>
> magic_quotes_gpc ON ON
> magic_quotes_runtime ON ON
> magic_quotes_sybase OFF OFF
>
> and I have:
>
> magic_quotes_gpc ON ON
> magic_quotes_runtime OFF OFF
> magic_quotes_sybase OFF OFF
>
> Is there anyway I can turn this off locally? Such as in .htaccess or
> within the script itself?
ini_set("magic_quotes_runtime", "off") would probably work. (There's a
counterpart ini_get() which is also useful).
Otherwise, .htaccess will also work:
php_flag magic_quotes_runtime off