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. 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/ 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
Archived
This topic is now archived and is closed to further replies.