pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gyozo Papp <pgerzson@freestart.hu>
To: Mitch Vincent <mvincent@cablespeed.com>
To: pgsql-php@postgresql.org
Subject: RE: Test
Date: Fri, 15 Jun 2001 09:57:35 +0200
Message-ID: <00a201c0f572$fc925820$cd46c5d5@jaguar> (raw)
References: <OF52E78903.DCD7C6C2-ON85256A6B.00651B7F@hartehanks.com>
	<004d01c0f525$c2b794a0$0200000a@Mitch>

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@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




view thread (15+ messages)  latest in thread

Message-ID: <00a201c0f572$fc925820$cd46c5d5@jaguar>
Permalink:  ../00a201c0f572$fc925820$cd46c5d5@jaguar/
Also on:    postgresql.org/message-id/00a201c0f572$fc925820$cd46c5d5@jaguar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: pgerzson@freestart.hu, mvincent@cablespeed.com
  Subject: Re: Test
  In-Reply-To: <00a201c0f572$fc925820$cd46c5d5@jaguar>
  References: <OF52E78903.DCD7C6C2-ON85256A6B.00651B7F@hartehanks.com> <004d01c0f525$c2b794a0$0200000a@Mitch> <00a201c0f572$fc925820$cd46c5d5@jaguar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox