From: | "Gyozo Papp" <pgerzson(at)freestart(dot)hu> |
---|---|
To: | "Mitch Vincent" <mvincent(at)cablespeed(dot)com>, <pgsql-php(at)postgresql(dot)org> |
Subject: | RE: Test |
Date: | 2001-06-15 07:57:35 |
Message-ID: | 00a201c0f572$fc925820$cd46c5d5@jaguar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 source which comes from outside of PHP -- in other words and more informally -- not genarated by your own script(such as db or 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(at)freestart(dot)hu
----- Original Message -----
From: "Mitch Vincent" <mvincent(at)cablespeed(dot)com>
To: <pgsql-php(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Frank Joerdens | 2001-06-15 08:30:11 | Re: Re(2): Test (fwd) |
Previous Message | Michael | 2001-06-15 07:50:01 | Re: [NOVICE] configuring question? |