RE: [PHP-DB] string problem

From: Date: Fri, 14 Sep 2001 16:16:14 +0000
Subject: RE: [PHP-DB] string problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12460@lists.php.net to get a copy of this message
There's an option in php.ini: magic_quotes_gpc = On/Off; If on, any GET, POST, and Cookie data will come back with \ marks before ' and " marks. Guesing one server has it set to Off, and one set to On. Justin Buist Trident Technology, Inc. 4700 60th St. SW, Suite 102 Grand Rapids, MI 49512 Ph. 616.554.2700 Fx. 616.554.3331 Mo. 616.291.2612 On Fri, 14 Sep 2001, Rick Emery wrote: > Don't know why you're getting problem. However, you can use stripslashes() > to avoid the problem. > > -----Original Message----- > From: Bruno Franx [mailto:bruno.franceschini@tin.it] > Sent: Friday, September 14, 2001 10:04 AM > To: php-db@lists.php.net > Subject: [PHP-DB] string problem > > > scenario: Win.nt 4.0 pach6a Workstation, IE 5.5, Apache/1.3.20, php 4.0.6 > wath goes wrong: when I set a string variable containing by example : " > hello "jack" " > on my html page php convert it to " hello \"jack\" " and I get no > errors > on another machine with same configuration I get > " hello "jack" " without quoting > any Ideas? > TIA > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#12460) next »