views:

277

answers:

1

What is the file? I have php.ini and php.ini-dist on my computer.

A: 

php.ini-dist is the sample config file that comes with PHP, php.ini is the live config so you will need to set in this file

magic_quotes_gpc = off
magic_quotes_runtime = off
magic_quotes_sybase = off
Tim
Depending our your configuration, you'll also most likely need to restart your webserver for these changes to take effect. :-)
middaparka
I changed the three equations to "off" and I restarted my web server, but the change doesn't take effect.
Steven
OK, it sounds like you'll need to check that PHP is reading the ini file you've updated. Simply output a page with <?php phpinfo(); ?> on it and this will list both the ini file in use and the magic quotes related settings.
middaparka
Good suggestion. Thank Middaparka and Tim.
Steven
I have resolved the problem with the help of you both.
Steven