SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    624
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    diable magic quotes gpc

    hi all

    i tried this below code in my xampp in htaccess to disable magic quotes

    php Ver 5.2.5

    Code:
    php_flag magic_quotes_gpc off
    The result of phpinfo()

    Code:
    Directive		 Local value		Master value
    magic_quotes_gpc	Off			On
    Does the master value always remain "ON".

    Or is it required to make the master value "OFF".

    If yes then how can SET master value "OFF"

    Secondly i would like to know whether it is mandatory to put the above line on top in htaccess

    vineet

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vinpkl View Post
    Does the master value always remain "ON".
    Yes, when using the method you have picked.

    Or is it required to make the master value "OFF".
    No.

    If yes then how can SET master value "OFF"
    Edit php.ini directly.

    Secondly i would like to know whether it is mandatory to put the above line on top in htaccess
    Not mandatory.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •