PHP
一世凡华
学如逆水行舟,不进则退
展开
-
如何处理php中敏感词和谐
最近在php的项目里,要加入敏感词和谐的功能,如下代码: //过滤敏感词 function fiterString($string,$insteadChar){ $filterword=file("filterwords.txt");//获得敏感词库 $string_=$string; $newstr='';//匹配替代后的最终字符串 $newString='';//每次匹原创 2013-02-28 10:42:56 · 810 阅读 · 3 评论 -
php中ajax请求无法获得返回值以及页面头部出现回车空格解决方案
一、php中ajax请求无法获得返回值 最近遇到一个棘手的问题,就是在一个php页面上进行ajax提交时,success方法没执行,拿不到返回值。 页面中代码如下: $.ajax({ async : false, type : 'post', dataType : 'json', url : '/ajax.php', data : {原创 2013-04-07 10:44:38 · 2255 阅读 · 0 评论