Topic awaiting preservation: PHP special chars (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 09-23-2002 21:31
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 |
posted 09-23-2002 22:02
If I understand correctly, what you want is stripslashes. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 09-23-2002 22:03
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 |
posted 09-23-2002 23:38
The whole stripslashes thing can get to be a real pain in the ass. So be careful with it. |
Paranoid (IV) Inmate From: Lebanon |
posted 09-24-2002 09:22
Grumble, in addition to what mr.Max has said.. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 09-24-2002 11:40
there's also a function called set_magic_quotes_runtime()... |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 09-24-2002 16:59
thanks everyone. |