会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zrn
phper的小白进阶之路
博客园
首页
新随笔
联系
管理
订阅
08 2018 档案
curl http验证
摘要:function get_http($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); c...
阅读全文
posted @
2018-08-14 10:26
zrn
阅读(1076)
评论(0)
推荐(0)
微信网页扫码登录
摘要:var $appid ='*********'; var $appsecret ='**********'; //构造函数,获取Access Token public function __construct($appid = NULL, $appsecret = NULL){ parent::__construct(); //扫码登录...
阅读全文
posted @
2018-08-09 11:51
zrn
阅读(690)
评论(0)
推荐(0)
获取天气信息
摘要://获取天气 function getweather($city){ //传入需要查询的城市 $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, "http://wthrcdn.etouch.cn/weather_mini?city=$city"); curl_setopt($ch, CU...
阅读全文
posted @
2018-08-09 11:36
zrn
阅读(153)
评论(0)
推荐(0)
ActiveMq获取topic数据
摘要:subscribe($queue); while(true) { //判断是否有读取的信息 if($stomp->hasFrame()) { $frame = $stomp->readFrame(); $data = json_decode($frame->body, true); //保存原始接收日志 file...
阅读全文
posted @
2018-08-09 11:32
zrn
阅读(2553)
评论(0)
推荐(0)
获取网页cookie信息文件实现模拟登录
摘要://获取cookie信息 public function get_cookie(){ header("Content-Type: text/html;charset=utf-8"); $url = 'http://signin.aliyun.com/login.htm'; //url地址 $post = "user_principal_na...
阅读全文
posted @
2018-08-09 10:31
zrn
阅读(2337)
评论(0)
推荐(0)
获取指定字符串中间的值
摘要:// 字符串 起始字符串 结束字符串function GetBetween($content,$start,$end){ $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); re...
阅读全文
posted @
2018-08-09 10:25
zrn
阅读(897)
评论(0)
推荐(0)
Thinkphp5添加自定义config文件
摘要:1.创建extra自定义配置文件 在application/extra文件夹中新增一个web.php文件,在里面写好自定义配置项: 2.创建自定义配置文件控制器 新建一个控制器,比如application/admin/controller/Config.php: 其中WEB_DESCRIPTION就
阅读全文
posted @
2018-08-09 10:09
zrn
阅读(6783)
评论(0)
推荐(0)
公告