US: (831) 440-7361
India: +919830271197
We Create Websites We Market Websites


addslashes and then stripslashes but still showing slashes, why?

(5 posts)
  1. Anonymous

    Unregistered

    can u help me wid sumthing .. im using addslashes to insert data but whn i m diplayin it wid stripslashes it still shows the the backslash

    Posted 2 years ago #
  2. admin

    !SEO but Web marketing
    Joined: Dec '08
    Posts: 48

    Check the magic_quotes_gpc ....

    The PHP directive magic_quotes_gpc is on by default, and it essentially runs addslashes() on all GET, POST, and COOKIE data. Do not use addslashes() on strings that have already been escaped with magic_quotes_gpc as you'll then do double escaping. The function get_magic_quotes_gpc() may come in handy for checking this.

    Hi, this is AjiNIMC
    Posted 2 years ago #
  3. Anonymous

    Unregistered

    thnx a lot fr ur help....:)

    Posted 2 years ago #
  4. admin

    !SEO but Web marketing
    Joined: Dec '08
    Posts: 48

    did it help?

    Posted 2 years ago #
  5. Anonymous

    Unregistered

    YAAAAAAAAA, magic_quotes was ON in server

    Posted 2 years ago #

Reply

(required)

Allowed markup: BBcode a blockquote code em strong ul ol li img font strike center u hr.
You can also put code in between backtick ( ` ) characters.

Get a Custom Quote & Free Website Review (Report includes 200+ keywords, ranking & more - worth $200)

Online

No Members around.