* Thus wrote Jeremy Johnstone ([EMAIL PROTECTED]):
> On Sun, 2003-08-31 at 10:11, Curt Zirzow wrote:
> > * Thus wrote Jeremy Johnstone ([EMAIL PROTECTED]):
>
> You might want to check the documentation again as it does not say
> anything about the db server translating \\ into \. This seems highly
> illogical, because if thats the case then addslashes("This is Jeremy's
> test of c:\test\foo.exe") would get corrupted when you strippedslashes
> after you pulled it back out of the database. If this is the case, which
> database servers translate this way? I will then make sure I go update
> the documentation accordingly.
I suppose it doesn't say that directly but it does explain what
characters need to be quoted with the '\'.
<quote http://php.net/addslashes>
Returns a string with backslashes before characters that need to be
quoted in database queries etc. These characters are single quote
('), double quote ("), backslash (\) and NUL (the NULL byte).
</quote>
When to use stripslashes() and addslashes() depends on the
php.ini setting 'magic_quotes_gpc', as noted in both of the
functions documentation.
> >
> > btw, you should post these questions to the php-general list,
> > especially when you are in doubt if you're using the function
> > properly.
> >
>
> Actually I was quite sure I was using the function correctly, I said
> that in case I misunderstood something in the documentation and thus
> needed to update the documentation accordingly.
I was letting you know that in future posts, questions regarding
proper use of functions or finding bugs should be posted to the
php-general list.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php