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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dedicated PHP Programmer

    I have a problem in using magic quotes in PHP. Can anybody explain me how to use magic quotes..
    Last edited by vinyl-junkie; 01-24-2012 at 12:47 PM. Reason: signatures only allowed through the control panel

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,474
    Thanks
    63
    Thanked 537 Times in 524 Posts
    Magic quotes is a feature of php. It's turned on via a setting in php.ini and is something that you should not be using.

    It was a bad idea from the start.

    What is your actual issue and do you have code to show us?
    I can't really think of anything to write here now...

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Magic quotes that was created to help protect newbie programmers from writing bad form processing code. Magic quotes would automatically escape risky form data that might be used for SQL Injection with a backslash \. The characters escaped by PHP include: quote ', double quote ", backslash \ and NULL characters.
    However, this newbie protection proved to cause more problems than it solved and is not in PHP 6. If your PHP version is any version before 6 then you should use this lesson to learn more about how magic quotes can affect you....

  • #4
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot for the information...but if we the magic quotes will it hinder our programming code...????

  • #5
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,474
    Thanks
    63
    Thanked 537 Times in 524 Posts
    Quote Originally Posted by reena19_lko View Post
    Thanks a lot for the information...but if we the magic quotes will it hinder our programming code...????
    Yes.

    Learn to code without them or at least include code that checks for them being turned on.
    I can't really think of anything to write here now...

  • #6
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot for the information regarding magic quotes...now i will be able to use it properly..


  •  

    Tags for this Thread

    Posting Permissions

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