![]() Topic awaiting preservation: PHP special chars (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
![]() ok, im using this code in some dribble scripts i have on the web. e.g. www.embege.com/yearbook |
Maniac (V) Inmate From: under the bed |
![]() If I understand correctly, what you want is stripslashes. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() PHP has a feature called "magic quotes", which automatically escapes all special characters in all data that's sent to the script (i.e. via GET, POST method, from cookies, etc.) So, the solution to your problem is to either turn off magic quote in php.ini configuration file or to use stripslashes() function to manually unescape strings... |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() The whole stripslashes thing can get to be a real pain in the ass. So be careful with it. |
Paranoid (IV) Inmate From: Lebanon |
![]() Grumble, in addition to what mr.Max has said.. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() there's also a function called set_magic_quotes_runtime()... |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
![]() thanks everyone. |