Rebelfriik009 Posted July 9, 2015 Share Posted July 9, 2015 Hi everybody,I am a php developer newbie. I really want to master php in my road on becoming a serious developer. I came to know that theget_magic_quotes_gpc() function is deprecated in php 5.5 and removed. is there any function that could help in security?Pleas take a look at this function and give your views. is this code good? Any tips and advise will helpfunction quote_smart($value, $handle){// Stripslashesif (get_magic_quotes_gpc()) {$value = stripslashes($value);}// Quote if not integerif (!is_numeric($value)) {$value = "'" . mysql_real_escape_string($value, $handle) . "'";}return $value;}thanks. Quote Link to comment https://forums.phpfreaks.com/topic/297242-get_magic_quotes_gpc-deprecated-please-help/ Share on other sites More sharing options...
Barand Posted July 9, 2015 Share Posted July 9, 2015 Read this thread http://forums.phpfreaks.com/topic/297236-get-magic-quotes-gpc-function-is-deprecated-some-help-please/ Quote Link to comment https://forums.phpfreaks.com/topic/297242-get_magic_quotes_gpc-deprecated-please-help/#findComment-1516003 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.