Re: Turning magic quotes on/off.

From: Date: Tue, 16 Jan 2001 09:01:16 +0000
Subject: Re: Turning magic quotes on/off.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34777@lists.php.net to get a copy of this message
> I just struggled with quoting in php3 and php4. Traditional > old-style raw data would be nice to have but using > set_magic_quotes_runtime (false) doesn't help. Should that > turn it off anyway? It is likely already off. magic_quotes_runtime is a legacy feature nobody uses anymore. > Another thing not documented to me is get_magic_quotes_gpc (). What > does the gpc part mean? magic_quotes_gpc is likely what you are after. GPC means GET/POST/COOKIE which is actually EGPCS these days (Environment, GET, POST, Cookie, Server). This cannot be turned off in your script because it operates on the data before your script is called. You can check if it is on using that function and treat the data accordingly. -Rasmus

« previous php.general (#34777) next »