There's actually a setting:
http://ca.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
and a set of functions:
http://ca.php.net/manual/en/function.get-magic-quotes-gpc.php
http://ca.php.net/manual/en/function.set-magic-quotes-gpc.php
Marco
--
php|architect - The magazine
That's probably the way that you want it to be, if you're inserting the data
into a database. When you retrieve it, you use stripslashes().
-Original Message-
From: Brandon Orther [mailto:orther;webintellects.com]
Sent: Thursday, November 07, 2002 1:16 PM
To: PHP User Group
Subject:
That's not necessarily true--if you're using MSSQL quotes are escaped
with quotes, I think.
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmer
Come visit us at http://www.phparch.com!
---BeginMessage---
yep, mea culpa, just thinking of MySQL.
-Original Message-
From: Marco Tabini [mailto:marcot;inicode.com]
Sent: Thursday, November 07, 2002 2:25 PM
To: John Meyer
Cc: Brandon Orther; PHP-General
Subject: RE: [PHP] getting changed to \ when pulled from a text
area
That's not necessarily
4 matches
Mail list logo