会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
记忆纳税流年
博客园
首页
新随笔
联系
管理
订阅
2019年2月21日
获得用户的真实IP地址
摘要: /** * 获得用户的真实IP地址 * * @access public * @return string */function real_ip(){ static $realip = NULL; if ($realip !== NULL) { return $realip; } if (isset
阅读全文
posted @ 2019-02-21 17:54 记忆纳税流年
阅读(293)
评论(0)
推荐(0)
2018年10月20日
公众号/小程序更改token
摘要: public function token() { $token = 'token';//微信-客服消息TOKEN(令牌)微信要更改的token必须是这个 $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce
阅读全文
posted @ 2018-10-20 16:25 记忆纳税流年
阅读(980)
评论(0)
推荐(0)
获取access_token
摘要: public function get_accessToken() { $this->_appid = 'wxbd1a2fc08ddb36eb'; $this->secret = 'a9c068624d58926cb23584b4a1559b98'; // access_token 应该全局存储与更
阅读全文
posted @ 2018-10-20 16:25 记忆纳税流年
阅读(1603)
评论(0)
推荐(0)
2018年10月11日
Windows(PHpstud)搭建Apache AND Nginx
摘要: 一、搭建Apache( 每复制一个相当于新建一个虚拟主机)【 vhosts-conf】 <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "F:/www/console" ServerName
阅读全文
posted @ 2018-10-11 11:29 记忆纳税流年
阅读(264)
评论(0)
推荐(0)
2018年9月29日
数组排序
摘要: 数组排序$sort = array_column($list, 'uv');array_multisort($sort, SORT_DESC, $list);数组分页(用tp分页) $list_print = $list;$count = count($list);$page_num = 20;$Page = new \Think\Page($count, $page_num);$list = a...
阅读全文
posted @ 2018-09-29 12:11 记忆纳税流年
阅读(181)
评论(0)
推荐(0)
公告