RE: Test - Mailing list pgsql-php

From Gyozo Papp
Subject RE: Test
Date
Msg-id 00a201c0f572$fc925820$cd46c5d5@jaguar
Whole thread Raw
In response to Re: Re(2): Test (fwd)  (Timothy_Maguire@hartehanks.com)
List 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 by date:

Previous
From: Michael
Date:
Subject: Re: Configure question?
Next
From: Frank Joerdens
Date:
Subject: Re: Re(2): Test (fwd)