RE: [PHP-DB] Still can't turn magic_quotes off!
| From: | John Holmes | Date: | Fri, 20 Sep 2002 14:56:19 +0000 |
| Subject: | RE: [PHP-DB] Still can't turn magic_quotes off! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21871@lists.php.net to get a copy of this message | ||
> on 9/20/02 10:06 AM, John Holmes at holmes072000@charter.net appended
the
> following bits to my mbox:
>
> > The manual says these settings can be changed at the user level, but
it
> > doesn't appear like they can, unless we're both doing something very
> > wrong.
>
> I believe that all variable processing is done (and slashes are added)
> before any of the page parsing is done. That's why ini_set within the
> script won't work.
I understand that, and it makes sense that a command in a file wouldn't
affect the settings, but in the manual, it says magic_quotes_gpc is a
user level setting, meaning you can use ini_set to control it.
> If you are using apache, try a .htaccess file in the directory with:
>
> php_value magic_quotes_gpc 0
We're trying to get this to work on IIS or without an .htaccess file.
The OP cannot change PHP.ini, either.
> Look through the comments at the page below for further information:
>
> http://www.php.net/manual/en/function.ini-set.php
Okay...what's the point of being able to set magic_quotes_gpc within a
script, but it will have _no_ effect. That's really stupid. They should
just change the manual page to say PHP_INI_PERDIR...
---John Holmes...