- 博客(4)
- 收藏
- 关注
转载 js倒计时发送验证码按钮
var wait=60; function time(o) { if (wait == 0) { o.removeAttribute("disabled"); o.value="免费获取验证码"; wait = 60; } else { o.setAttribute("disabled", true); o.value="重新发送(" + wait +
2013-12-19 10:46:29 536
转载 Image / file upload with CodeIgniter
mage upload can be a pain in the *ss. And even though CI has a lot to offer (in the means of documentation) it still lacks a direct copy-paste code on their website so that people can just put it into
2013-12-17 00:00:10 619
转载 PEAR和PECL的区别
Pear:是PHP的扩展代码包,所有的扩展均以PHP代码的形式出现,功能强大,安装简单,甚至可以改改就用。使用的时候,要在代码中进行Include才能够使用。 Pecl:是PHP的标准扩展,可以补充实际开发中所需的功能,所有的扩展都需要安装,在Windows下面以Dll的形式出现,在linux下面,需要单独进行编译,它的表现形式为根据PHP官方的标准用C语言写成,尽管源码开放但是一般人无
2013-12-07 22:29:58 536
转载 PHP概率算法(适用于抽奖、随机广告)
function get_rand($proArr) { $result = ''; //概率数组的总概率精度 $proSum = array_sum($proArr); //概率数组循环 foreach ($proArr as $key => $proCur) { $randNum = mt_rand(1, $pro
2013-12-03 23:04:41 785
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人