Reputation:
I've been told by my hosting company that putting a php.ini
file in the folder that my domain is mapped to will disable magic_quotes_gpc
. I created a text file and saved it as php.ini
and uploaded it via FTP to the mapped folder. It did not fix my issue though. Here is what my .ini
file looks like
magic_quotes_gpc = Off
I also tried
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
That did not work either.
when testing a \
is still appearing in the text. My experience with .ini
files is zero and my hosting company offer very little support. Any advice would be greatly appreciated.
Upvotes: 2
Views: 1608
Reputation: 917
What is the full location of the folder you are putting that php.ini
in?
You need to make sure that its in your home directory not in your public folder.
You can also add php_flag magic_quotes_gpc Off
to your .htaccess
file if you have one, and it should do the same thing.
Upvotes: 1