Codeasearch.com - Search your code with us Login | Register | Contact us
  Forums > Php > get_magic_quotes_gpc() ISSUE
najeebputhiyallam
Posted on Jun 21, 2009
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.

 Hot Discussion
Go Tech launches Android tablet for Rs 3,999...
Sony targets retailers with quick sales pitches and rew...
Share and discover new activities with Google Schemer...
Samsung gets 9 mn preorders for Galaxy S3: Report...
Google revamps search engine to think like a person...
 
 Discussion Topics
IT News
Php
Javascript
Technology Updates
Asp.Net
MySql
Ajax
Html
Fedora
Software Testing
Asp
Java
General
Flash
Ruby on Rails