支持本站的赞助商广告
分类目录┊Categories
- acg culture (4)
- Concern (7)
- Mylife (20)
- 历史存档 (106)
-
最新日志┊New Post
最新评论┊New Reply
归档┊Archives
标签┊Tags
-
垃圾评论拦截
Monthly Archives: 03月 2008
FireStats 1.4.4-stable bug in ip2c on 64bit machines
如果是php 5.2.1 且使用 64位 系统安装 FireStats 1.4.4-stable这个版本的统计可能会遇到国家ip统计工作不正常的情况这时我们需要修改firestats/lib/ip2c/下的ip2c.php 查找function readInt()子类,修改子类代码为 function readInt() { $a=unpack(‘N’, fread($this->m_file, 4)); $b = sprintf(“%b”, $a[1]); if(strlen($b) == 64){ $new = substr($b, 33); $a[1] = bindec($new); } return $a[1]; }