frijole Posted February 2, 2008 Share Posted February 2, 2008 what does this do? if(ini_get("magic_quotes_gpc") == "1") I looked magic_quotes_gpc up in the manual and it says it is strongly discouraged. Also, ini_get returns the configuration? I am not sure what the function of this code is, any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/89092-solved-what-does-magic_quotes_gpc-do-and-isnt-it-discouraged/ Share on other sites More sharing options...
trq Posted February 3, 2008 Share Posted February 3, 2008 magic_quotes_gpc automatically adds slashes to all request data. The likely use for the line above is to check if magic_quotes_gpc is enabled, and if so, use strip slashes to get the data back into its raw format. Quote Link to comment https://forums.phpfreaks.com/topic/89092-solved-what-does-magic_quotes_gpc-do-and-isnt-it-discouraged/#findComment-456441 Share on other sites More sharing options...
frijole Posted February 3, 2008 Author Share Posted February 3, 2008 thanks, that makes sense Quote Link to comment https://forums.phpfreaks.com/topic/89092-solved-what-does-magic_quotes_gpc-do-and-isnt-it-discouraged/#findComment-456502 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.