Page 1 of 1

Magic quotes and ini_set

Posted: Sat Dec 03, 2011 4:48 pm
by Rubio
Forgive my English
I'm trying to install MS on a new hosting, but during installation I get

"Magic quotes running ON"

This does not allow me to continue.
Not being able to intervene in php.ini, I was told to use ini_set, but I do not know how can you help me?


THANKS

Re: Magic quotes and ini_set

Posted: Sun Dec 04, 2011 10:04 pm
by spcherub
If you cannot edit php.ini, but can edit the .htaccess file, you can try adding the following to the top of the file:

Code: Select all

php_flag magic_quotes_gpc off
If this does not work (or your server throws an error), you can look at this page for more options. Depending on your version of PHP you may or may not be able to set this parameter via ini_set()
http://php.net/manual/en/security.magic ... abling.php

Hope this helps.
-S