Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: magic quotes

  1. #1
    New Coder
    Join Date
    Dec 2008
    Location
    india
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    magic quotes

    Hi,

    How do i enable magic quotes in php?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    You shouldn't enable them, you should disable them. PHP6 will be removing them completely, so all reliance should be abandoned.
    You can enable magic_quotes_gpc using the php.ini file, or if you're hosts configured, you can use a local php.ini file or .htaccess. You cannot enable / disable magic_quotes on a per file basis.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

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