会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
﹏Sakura
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
···
17
下一页
2014年6月16日
火狐下验证码调用失败。
摘要: 调用验证码 其他浏览器都没问题 唯独火狐总是请求两次。 无奈只好改成这种。缺陷是如果验证码显示不出页面就循环请求了。。
阅读全文
posted @ 2014-06-16 18:22 ﹏Sakura
阅读(450)
评论(2)
推荐(0)
2014年6月2日
PHP curl get post通用类
摘要: url = $url; $this->ch = curl_init(); $this->type = $type; } //设置发送方式 0 get 1 post public function setType( ...
阅读全文
posted @ 2014-06-02 22:58 ﹏Sakura
阅读(3836)
评论(0)
推荐(0)
2014年3月18日
JS 实现拖动效果
摘要: 后续功能做成插件形式~
阅读全文
posted @ 2014-03-18 09:26 ﹏Sakura
阅读(360)
评论(0)
推荐(0)
2014年3月12日
PHP curl登录 跳过验证码
摘要: php switch($_GET['do']){ case 'vc': $cookieFile = "./test.tmp"; $url = 'http://localhost/test/login.php?do=vcode&?r='.rand(); $ch = curl_init($url); ...
阅读全文
posted @ 2014-03-12 16:55 ﹏Sakura
阅读(4196)
评论(2)
推荐(0)
2014年3月4日
Thinkphp 去除bom头 解决模版空输出问题
摘要: "; }else{ $dirname = $basedir."/". $file; checkdir($dirname); } } } closedir($dh); } } function checkBOM ($filename) { global $auto; $contents = file...
阅读全文
posted @ 2014-03-04 10:15 ﹏Sakura
阅读(1946)
评论(0)
推荐(0)
2014年2月22日
PHP一致性哈希实现。。
摘要: php /** *@author:xiaojiang 20140222 * 一致性哈希php 实现 */ class MyHash{ //虚拟节点数 private $_virtualCounts = 2; //虚拟节点集合 private $_circleItems = array(); //实...
阅读全文
posted @ 2014-02-22 18:53 ﹏Sakura
阅读(2304)
评论(1)
推荐(1)
2014年2月12日
JS 省市县三级联动
摘要: $(".area").change(function(ent,arg){ var $this = $(this), level = $(this).attr("id"); $.ajax({ url:'/Order/selectAddress', data:{l:level,type:'ajax'...
阅读全文
posted @ 2014-02-12 14:15 ﹏Sakura
阅读(1272)
评论(0)
推荐(0)
微信开发返回验证来源方式代码
摘要: php $xml = simplexml_load_string($GLOBALS['HTTP_RAW_POST_DATA']); $arr = array( 'appid'=> (string)$xml->AppId, 'appkey'=>$appkey, 'issubscribe'=> (st...
阅读全文
posted @ 2014-02-12 09:12 ﹏Sakura
阅读(454)
评论(0)
推荐(0)
2014年1月15日
Yii 开发过程 tips
摘要: 1、 查看DAO 生成的sql 结果(类似TP的 getLastSql): $reto = $edb->createCommand($bsql); echo $reto->text;2、Yii获取客户端IPYii::app()->request->userHostAddress;3、获取iframe元素 var iframe = document.getElementsByName("goods_list")[0]; iframe.onload = iframe.onreadystatechange = function() { $(iframe.c
阅读全文
posted @ 2014-01-15 00:25 ﹏Sakura
阅读(531)
评论(0)
推荐(0)
2014年1月8日
PHP 搜索分词实现代码
摘要: w = $w; $this->isEnd = $isEnd; } } public function insert( $str ){ $len = strlen($str); if(!$len) return ; $scope = $this; for( $i = 0; $i 127 ){ $cStr = substr($str, $i, 3); $i += 2; } $scope...
阅读全文
posted @ 2014-01-08 00:41 ﹏Sakura
阅读(6512)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
17
下一页
公告