RE: [PHP] Temporarily turning off magic quotes?

From: Date: Sun, 25 Feb 2001 10:27:21 +0000
Subject: RE: [PHP] Temporarily turning off magic quotes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41574@lists.php.net to get a copy of this message
you can use: if($REQUEST_METHOD=='GET' or $REQUEST_METHOD=='POST') ini_set ('magic_quotes_gpc', 'off'); Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Ben Cheng [mailto:ronin@darwinmail.net] Sent: Sunday, February 25, 2001 1:52 PM To: php-general@lists.php.net Subject: [PHP] Temporarily turning off magic quotes? If I have magic quotes turned on for post/get/etc. in my php.ini, is there any way to temporarily turn it off for one page? For example, I have a preview page inbetween my data entry page and the page that actually saves to db. I don't want magic quotes turned on when going from the data entry to the preview page since all quotes keep getting backslashed. Is there a way to do this? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#41574) next »