#1
  1. No Profile Picture
    nico
    Guest
    Devshed Newbie (0 - 499 posts)
    i'm pretty new to php (started last night but i have experience with perl, asp, c, java, name it..
    so i started coding a php guestbook (not really useful, but good to start learning). so i found out how to write to files and stuff, BUT (!!) whenever i write a string to a file that contains a " or a ' it writes that, but with a (backslash) before it. i tried using set_magic_quotes_runtime but it didn't seem to work, it's really kinda annoying.
    anyone knows how to get rid of this?
    thanks
  2. #2
  3. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    Use stripsplashes() on the string before you write it to the file:

    $string = stripslashes($string);

    adam
  4. #3
  5. No Profile Picture
    nico
    Guest
    Devshed Newbie (0 - 499 posts)
    i knew it wouldn't be hard

    -thanks

Similar Threads

  1. How do I get rid of this darn white bkgd??
    By jwdesigns in forum Photoshop Help
    Replies: 14
    Last Post: May 17th, 2006, 08:42 AM
  2. get rid of the decimal
    By wannabe in forum PHP Development
    Replies: 7
    Last Post: November 17th, 2003, 08:33 PM
  3. Replies: 1
    Last Post: September 10th, 2002, 03:33 AM
  4. getting rid of SID on the first page
    By swoopx in forum PHP Development
    Replies: 1
    Last Post: August 22nd, 2002, 05:54 PM
  5. how to get rid of damned trans_sid
    By mkarabulut in forum PHP Development
    Replies: 17
    Last Post: May 2nd, 2002, 01:00 AM

IMN logo majestic logo threadwatch logo seochat tools logo