How to disable magic quotes gpc

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
haynakoo
A semi-regular
A semi-regular
Posts: 24
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Jul 12, 2010 3:45 pm

How to disable magic quotes gpc

Post by haynakoo »

I need to disable magic quotes gpc for the new version of amxbans to work. How do I do that on a lite webhosting package?

Thanks
User avatar
Edge100x
Founder
Founder
Posts: 13113
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to disable magic quotes gpc

Post by Edge100x »

To do this on any webhosting package, you can create a file called .htaccess in the directory that needs to have the magic quotes disabled. In that file, include this line:

Code: Select all

php_flag magic_quotes_gpc Off
More information on this can be found here: http://php.net/manual/en/security.magic ... abling.php
haynakoo
A semi-regular
A semi-regular
Posts: 24
Joined: Mon Jul 12, 2010 3:45 pm

Re: How to disable magic quotes gpc

Post by haynakoo »

What file extension should I use?
haynakoo
A semi-regular
A semi-regular
Posts: 24
Joined: Mon Jul 12, 2010 3:45 pm

Re: How to disable magic quotes gpc

Post by haynakoo »

Nevermind, I got it. .htaccess IS the file extension. I had to delete .txt for it to work.
Post Reply