RE: Test
От | Gyozo Papp |
---|---|
Тема | RE: Test |
Дата | |
Msg-id | 00a201c0f572$fc925820$cd46c5d5@jaguar обсуждение исходный текст |
Ответ на | Re: Re(2): Test (fwd) (Timothy_Maguire@hartehanks.com) |
Список | pgsql-php |
Hello, You are right, just for clarity the directives mentioned before are: magic_quotes_runtime [on|off] = if it's turned on single and double quotes (' and ") will be escaped with a blackslash. Escaping is applied to every sourcewhich comes from outside of PHP -- in other words and more informally -- not genarated by your own script(such as dbor file read) - automagically. [also have a look at these functions: set_magic_quotes_runtime(int), int get_magic_quotes_runtime()] magic_quotes_sybase [on|off] = if it's *also* turned on PHP single quotes (') will be escaped with another ' instead of blackslash (\). It effects only if magic_quotes_runtime is turned on. Papp Gyozo - pgerzson@freestart.hu ----- Original Message ----- From: "Mitch Vincent" <mvincent@cablespeed.com> To: <pgsql-php@postgresql.org> Sent: 2001. június 15. 01:00 Subject: Re: [PHP] Re: Re(2): Test (fwd) > > you can use the addslashes() function. This will make O'Brien O\'Brien > and > > the db will take it. In php4 this happens by default > > Not really by default, it's a configuration option to have that happen > to data coming from forms. I forget the exact name of the parameter in the > php.ini file, but it's something like magic_quotes_runtime or some such > beast. > > Just an FYI.. > > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html
В списке pgsql-php по дате отправления: