摘要: thumbs.db是一个用于Microsoft Windows XP 或mac os x缓存Windows Explorer的缩略图的文件. thumbs.db保存在每一个包含图片或照片的目录中.thumbs.db文件可缓存图像文件的格式包括: jpeg, bmp和gif ,tif , pdf和htm.thumbs.db文件是一个数据库,里面保存了这个目录下所有图像文件的缩略图(格式为jpeg).当以缩略图查看时(展示一幅图片或电影胶片) ,将会生成一个thumbs.db文件.要想去除他,按下述操作.1 .单击开始2 .双击控制面板3 .双击文件夹选项4 .点击查看5 .打勾不缓存缩略图6 . 阅读全文
posted @ 2011-08-18 10:21 越------ 阅读(306) 评论(0) 推荐(0)
摘要: ReflectionClass 阅读全文
posted @ 2011-08-11 15:51 越------ 阅读(134) 评论(0) 推荐(0)
摘要: (1) autoload机制概述 在使用 PHP的OO模式开发系统时,通常大家习惯上将每个类的实现都存放在一个单独的文件里,这样会很轻易实现对类进行复用,同时将来维护时也很便利。这也是OO设计的基本思想之一。在PHP5之前,假如需要使用一个类,只需要直接使用include/require将其包含进来即可。下面是一个实际的例子: <?php class Person { var $name, $age; function __construct ($name, $age) { $this->name = $name; $this->age = $age; } } ?> & 阅读全文
posted @ 2011-08-11 00:00 越------ 阅读(445) 评论(0) 推荐(0)
摘要: 前几天在项目中看到这句代码:$this->getHelper('redirector')->goto('login', 'account');找遍了rediretor.php 也找不到goto方法,最后发现原来是在__call中。goto原来就是gotoSimple,呵呵~~public function __call($method, $args) { $method = strtolower($method); if ('goto' == $method) { return call_user_func_array 阅读全文
posted @ 2011-08-06 12:14 越------ 阅读(209) 评论(0) 推荐(0)
摘要: 一:利用腾讯接口(http://fw.qq.com/ipaddress) 示例代码:<script type="text/javascript" src="http://fw.qq.com/ipaddress"></script><script type="text/javascript"> document.write(IPData.join());</script> 二:利用太平洋电脑网(http://whois.pconline.com.cn/ipJson.jsp) 1 <h 阅读全文
posted @ 2011-07-29 13:11 越------ 阅读(364) 评论(0) 推荐(0)
摘要: 1、js的时间戳和php的时间戳转换需要注意的地方JS时间戳为13位,包含3位毫秒的(最后面的三位),而PHP只有10位不包含毫秒的。2、以下是js代码<script type="text/javascript">var Tday = new Array();var daysms = 24 * 60 * 60 * 1000;var hoursms = 60 * 60 * 1000;var Secondms = 60 * 1000;var microsecond = 1000;var DifferHour = -1;var DifferMinute = -1;va 阅读全文
posted @ 2011-07-27 16:14 越------ 阅读(1165) 评论(0) 推荐(0)