Re: [PHP] php.ini

[email protected] (Wolf)
Newsgroups php.general
Message-ID <15181093.3971210352365557.JavaMail.root@cdptpa-web17-z01>
---- Michael Satterwhite <[email protected]> wrote: 
> I'm trying to turn off magic quotes for a site. I've copied the php.ini 
> from /etc/php5/apache2 to the web site directory. In this file, I've changed 
> magic_quotes_gpc to read
> 	magic_quotes.gpc = Off
> 
> When I run phpinfo() from this directory, it still shows magic quotes as being 
> on. I'm guessing there is another configuration parameter (either in the 
> Apache configuration or for php) that allows this to be processed. Would 
> someone be so kind as to help me here; I admit ignorance. 
> 
> ---Michael
'

When making changes to Apache configuration read files, you have to RESTART APACHE before those changes take effect.

However you can use php's ini_set () function to set a number of settings on the fly that can be changed per page change.

HTH,
Wolf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.