And so it ends...(here is what the PGP bug people had to say about it...)

 ID:               19526
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         PHP options/info functions
 Operating System: Win2K
 PHP Version:      4.2.2
 New Comment:

Changing the value of magic_quotes_gpc is only effective if it's set
_before_ the script starts (e.g. via php.ini, httpd.conf or .htaccess). In
the CVS version you should get a warning if you try to set it in a script
anyway.



-----Original Message-----
From: John Holmes [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 20, 2002 10:56 AM
To: 'Paul Burney'; Vincent, Jason [BRAM:1334:EXCH]; 'PHP Database List'
Subject: RE: [PHP-DB] Still can't turn magic_quotes off!


> on 9/20/02 10:06 AM, John Holmes at [EMAIL PROTECTED] 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...

Reply via email to