Re: [GENERAL] Automatic Backslash

From: Date: Sat, 25 Nov 2000 00:29:25 +0000
Subject: Re: [GENERAL] Automatic Backslash
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27057@lists.php.net to get a copy of this message
If I were you, I wouldn't turn off magic quotes in the ini file. It usually comes in very handy. Just use the functions to control it at runtime. stripslashes: http://www.php.net/manual/function.stripslashes.php set_magic_quotes_runtime: http://www.php.net/manual/function.set-magic-quotes-runtime.php -Dan ----- Original Message ----- From: Enrico Comini To: ML-PHP-GENERAL Sent: Friday, November 24, 2000 3:13 PM Subject: [GENERAL] Automatic Backslash I set all magic quotes to Off in php.ini I restart Apache but when i get a record from table with $row = pg_fetch_array($result, 1); $line = $row["line"]; echo $line; THE result is: 2;\"100\";\"Parmigiano Reggiano\";\"Parmigiano Reggiano stagionato 2 anni\";4;\"parmigiano4.jpg\";2;\"Fette 1 Kg\";0.18;1;1.00;\"true\" I have all the quote with a Backslash When I modify php.ini what I have to do ? isn't sufficent restart Apache ?

« previous php.general (#27057) next »