php过滤敏感词
2016-12-02 10:47
239 查看
<?php header('content-type:Text/html; charset=utf-8'); $user=$_POST["text"]; $content=file_get_contents("mingan.txt") ; $arr=explode("\r\n",$content); function checker($arr,$user) { $result = 0; for($i=0;$i<count($arr);$i++) { preg_match('/'.$arr[$i].'/', $user, $mnt); if(!empty($mnt)){ $result = 1; break; } } return $result; } if(checker($arr,$user)>0){ echo "有问题"; } else{ echo "没有问题"; } ?>
如有转载,请带上地址: http://blog.csdn.net/dear_zx 资源下载地址 : http://download.csdn.net/detail/dear_zx/9699605
相关文章推荐
- PHP过滤post,get敏感数据
- php实现敏感词过滤
- 一个高效的敏感词过滤方法(PHP)
- 一个高效的敏感词过滤方法(PHP)
- php过滤敏感词
- PHP的一个过滤敏感词或脏话的方法
- php过滤敏感词实例代码
- php过滤敏感词的示例
- php过滤所有恶意字符(批量过滤post,get敏感数据)经典
- PHP敏感字过滤
- php敏感词过滤
- php敏感词过滤
- php 批量过滤post,get敏感数据
- 一个高效的敏感词过滤方法(PHP)
- [转载]敏感词过滤,PHP实现的Trie树
- 强大的PHP防SQL注入类,可以过滤敏感参数
- 一个高效的敏感词过滤方法(PHP)
- php表单敏感字符过滤类
- PHP实现敏感词过滤系统