摘要: 1:Function ereg() is deprecated Error 错误对策 Deprecated: Function ereg() is deprecated in …… 解决方法一: 退回去用php5.2。 解决方法二:继续用php5.3,但是修改devel/devel.modul的460行: if ($errno & (E_ALL ^ E_NOTICE)) { 改为 if ($errno & (E_ALL & ~E_NOTICE & ~E_DEPRECATED)) { 把deprecated错误给忽略掉) 解决方法三:把ereg换成preg_mat 阅读全文
posted @ 2012-05-24 22:35 Rayol 阅读(530) 评论(0) 推荐(1) 编辑
摘要: 1 netstat -n | awk '/^tcp/ {n=split($(NF-1),array,":");if(n<=2)++S[array[(1)]];else++S[array[(4)]];++s[$NF];++N} END {for(a in S){printf("%-20s %s\n", a, S[a]);++I}printf("%-20s %s\n","TOTAL_IP",I);for(a in s) printf("%-20s %s\n", a, s[a]);pri 阅读全文
posted @ 2012-05-24 22:32 Rayol 阅读(4173) 评论(0) 推荐(2) 编辑