2016年12月27日

淘宝ip库接口调用

摘要: function ip($ip) { $url="http://ip.taobao.com/service/getIpInfo.php?ip=".$ip; $ipinfo=json_decode(file_get_contents($url)); if($ipinfo->code=='1'){ re 阅读全文

posted @ 2016-12-27 14:45 炊厨 阅读(426) 评论(0) 推荐(0)

微信接口access_token

摘要: //调用聚合网笑话接口 $url = 'http://japi.juhe.cn/joke/img/text.from?page=&pagesize=2&key=f0d06a1fe45b2d35825810b6b83bdd2d'; $con=https_request($url); p( $con ) 阅读全文

posted @ 2016-12-27 14:42 炊厨 阅读(189) 评论(0) 推荐(0)

curl的POST与GET方法

摘要: $url = '127.0.0.1/shang/bb.php'; $data = array('name'=>'赵猛','age'=>'23'); print_r(get($url,$data)) ; function post($url,$data = array()){ $query = mak 阅读全文

posted @ 2016-12-27 14:36 炊厨 阅读(582) 评论(0) 推荐(0)

HTTP POST GET详解

摘要: get /shang/a1.php http/1.1 host: localhost POST /shang/a1.php HTTP/1.1 Host: localhost Content-Type: application/x-www-form-urlencoded Content-Length: 阅读全文

posted @ 2016-12-27 14:35 炊厨 阅读(128) 评论(0) 推荐(0)

2016年12月23日

Ajax封装方法

摘要: /* 调用方法 setInterval(function(){ ajax('get','json_php_html.php','',function(data){ data = JSON.parse(data); html=''; for ( var i = 0; i<data.length; i+ 阅读全文

posted @ 2016-12-23 17:29 炊厨 阅读(124) 评论(0) 推荐(0)

导航