PHP安全编程小记
摘要:
1,防范SQL注入,HTML中JS脚本注入 原则:不要相信对于客户端提交的值,必须经过安全处理后才可以使用。比如: $variable = $_POST['user_input'];$variable = mysql_real_escape_string($variable);$variable = stripslashes($variable);$variable = htmlentities... 阅读全文
posted @ 2010-05-03 00:39 宁静的水泡 阅读(329) 评论(0) 推荐(0)
浙公网安备 33010602011771号