Received: from relay.freestart.hu (mx.freestart.hu [213.197.64.3]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5F8Aba33757 for ; Fri, 15 Jun 2001 04:10:38 -0400 (EDT) (envelope-from pgerzson@freestart.hu) Received: from jaguar (line-70-205.dial.freestart.hu [213.197.70.205]) by relay.freestart.hu (Postfix) with SMTP id 11FD02E4E; Fri, 15 Jun 2001 10:10:33 +0200 (MET DST) Message-ID: <00a201c0f572$fc925820$cd46c5d5@jaguar> From: "Gyozo Papp" To: "Mitch Vincent" , References: <004d01c0f525$c2b794a0$0200000a@Mitch> Subject: RE: Test Date: Fri, 15 Jun 2001 09:57:35 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id f5F8Aca33760 X-Archive-Number: 200106/33 X-Sequence-Number: 430 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" To: 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