aruncourage Posted April 27, 2010 Share Posted April 27, 2010 Why using (get_magic_quotes_gpc) in php? 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. 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. Link to comment https://forums.phpfreaks.com/topic/199908-get_magic_quotes_gpc/#findComment-1049251 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.