Join Date: March 2009
Location: India ( Bangalore )
Posts: 12
get_magic_quotes_gpc() ISSUE
hi everyone
if (get_magic_quotes_gpc()) { $a = stripslashes($a); }
in the above code is it important that we need to chk "magic_quotes_gpc" status for executing stripslash function ?????? i ask it coz i saw this page http://in2.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc sayin that its usage is deprecated and will be removed in next version .. plz clear my doubt...
PS: get_magic_quotes_gpc() is turned off in wampserver by default :O
benaya
Posted on Jun 22, 2009
Join Date: June 2007
Location: India ( Chennai )
Posts: 90
RE : get_magic_quotes_gpc() ISSUE
When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically.
In latest php 5 and also wamp server its support so no need care about that.