什么是最好的PHP输入消毒功能?
我正试图想出一个函数,我可以传递我所有的字符串通过消毒。因此,从其中取出的字符串对于数据库插入是安全的。但是有那么多滤波函数在那里,我不确定我应该使用[需要]哪些。
请帮我填空:
function filterThis($string) { $string = mysql_real_escape_string($string); $string = htmlentities($string); etc... return $string;}
哈士奇WWW
相关分类