上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: 调用验证码 其他浏览器都没问题 唯独火狐总是请求两次。 无奈只好改成这种。缺陷是如果验证码显示不出页面就循环请求了。。 阅读全文
posted @ 2014-06-16 18:22 ﹏Sakura 阅读(431) 评论(2) 推荐(0) 编辑
摘要: url = $url; $this->ch = curl_init(); $this->type = $type; } //设置发送方式 0 get 1 post public function setType( ... 阅读全文
posted @ 2014-06-02 22:58 ﹏Sakura 阅读(3824) 评论(0) 推荐(0) 编辑
摘要: 后续功能做成插件形式~ 阅读全文
posted @ 2014-03-18 09:26 ﹏Sakura 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(4151) 评论(2) 推荐(0) 编辑
摘要: "; }else{ $dirname = $basedir."/". $file; checkdir($dirname); } } } closedir($dh); } } function checkBOM ($filename) { global $auto; $contents = file... 阅读全文
posted @ 2014-03-04 10:15 ﹏Sakura 阅读(1926) 评论(0) 推荐(0) 编辑
摘要: php /** *@author:xiaojiang 20140222 * 一致性哈希php 实现 */ class MyHash{ //虚拟节点数 private $_virtualCounts = 2; //虚拟节点集合 private $_circleItems = array(); //实... 阅读全文
posted @ 2014-02-22 18:53 ﹏Sakura 阅读(2296) 评论(1) 推荐(1) 编辑
摘要: $(".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 阅读(1262) 评论(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 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(6489) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页