aruncourage Posted April 27, 2010 Share Posted April 27, 2010 Why using (get_magic_quotes_gpc) in php? Quote Link to comment https://forums.phpfreaks.com/topic/199908-get_magic_quotes_gpc/ Share on other sites More sharing options...
Mchl Posted April 27, 2010 Share Posted April 27, 2010 To check if magic_quotes_gps is enabled, and if it is, to stripslashes() from any _POST, _GET and _COOKIE variables. Quote Link to comment https://forums.phpfreaks.com/topic/199908-get_magic_quotes_gpc/#findComment-1049250 Share on other sites More sharing options...
salathe Posted April 27, 2010 Share Posted April 27, 2010 The purpose of that function is simply to see if the magic quotes setting is on or not. Since magic quotes are a deprecated feature, the function is often used to see if magic quotes are enabled as a condition for code to undo its effect. Quote Link to comment https://forums.phpfreaks.com/topic/199908-get_magic_quotes_gpc/#findComment-1049251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.