Re: addslashes
| From: | Torsten Roehr | Date: | Fri, 11 Jun 2004 17:49:13 +0000 |
| Subject: | Re: addslashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188123@lists.php.net to get a copy of this message | ||
"Jough P" <jough@wiretapped.us> wrote in message
news:3A472B24-BBCF-11D8-9E07-0003934577BE@wiretapped.us...
> Greetings all,
>
> I'm doing all my PHP development on my iBook running OS X. I'm
> currently working on a messaging tool for a website. When the messages
> are posted on my iBook the single quotes are escaped properly. When I
> upload the same *.php files to the server the single quotes are
> preceded by a backslash.
> i.e.
> Don't
> appears:
> Don\'t
>
> I presume this has something to do with the way PHP is configured. My
> goal is to never have to use the addslashes() function. Any
> suggestions?
See here:
http://de.php.net/addslashes
Pay attention to the notes on magic_quotes.
Regards,
Torsten Roehr