摘要:
调用验证码 其他浏览器都没问题 唯独火狐总是请求两次。 无奈只好改成这种。缺陷是如果验证码显示不出页面就循环请求了。。 阅读全文
摘要:
url = $url; $this->ch = curl_init(); $this->type = $type; } //设置发送方式 0 get 1 post public function setType( ... 阅读全文
摘要:
php switch($_GET['do']){ case 'vc': $cookieFile = "./test.tmp"; $url = 'http://localhost/test/login.php?do=vcode&?r='.rand(); $ch = curl_init($url); ... 阅读全文
摘要:
"; }else{ $dirname = $basedir."/". $file; checkdir($dirname); } } } closedir($dh); } } function checkBOM ($filename) { global $auto; $contents = file... 阅读全文
摘要:
php /** *@author:xiaojiang 20140222 * 一致性哈希php 实现 */ class MyHash{ //虚拟节点数 private $_virtualCounts = 2; //虚拟节点集合 private $_circleItems = array(); //实... 阅读全文
摘要:
$(".area").change(function(ent,arg){ var $this = $(this), level = $(this).attr("id"); $.ajax({ url:'/Order/selectAddress', data:{l:level,type:'ajax'... 阅读全文
摘要:
php $xml = simplexml_load_string($GLOBALS['HTTP_RAW_POST_DATA']); $arr = array( 'appid'=> (string)$xml->AppId, 'appkey'=>$appkey, 'issubscribe'=> (st... 阅读全文
摘要:
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 阅读全文
摘要:
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... 阅读全文