Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    52

    Default magic_quotes_gpc

    Is there a way to set magic_quotes_gpc to off either for one domain/sub-domain or for my entire site?

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Quote Originally Posted by parag joshi View Post
    Is there a way to set magic_quotes_gpc to off either for one domain/sub-domain or for my entire site?
    For a domain/sub-domain create or add this to the .htaccess file if you are not running SuPhp

    Code:
    php_flag magic_quotes_gpc off
    If running SuPhp make a php.ini file for every folder you need this disable and put in

    Code:
    magic_quotes_gpc = Off
    For serverwide put the this code in your main php.ini file

    Code:
    magic_quotes_gpc = Off
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. Er... seriously? magic_quotes_gpc defaults to on?
    By ritontor in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-27-2010, 03:21 PM
  2. Custom PHP build through Easy Apache turns on magic_quotes_gpc?????
    By ritontor in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-08-2009, 12:53 PM
  3. magic_quotes_gpc - Turn off for specific account?
    By mattsilv in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-09-2007, 11:11 PM
  4. magic_quotes_gpc
    By purplepaws in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-31-2003, 01:14 PM
  5. magic_quotes_gpc
    By mpope in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-04-2001, 07:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube