会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
时间掉飞机
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2020年8月26日
微信公众号发送客服消息
摘要: <?php /** * PushMessage * 微信公众号发送文本信息 */ class PushMessage{ private $appID = ""; // 服务号appID private $appSecret = ""; // 服务号appSerect // 获取access_toke
阅读全文
posted @ 2020-08-26 08:50 时间掉飞机
阅读(312)
评论(0)
推荐(0)
2020年8月22日
php ip 城市(百度地图)
摘要: 注:前往百度地图api开放平台登录 在控制台创建一个应用 拿到访问应用的AK 代码: function getClientIP() { $realip = ''; $unknown = 'unknown'; if (isset($_SERVER)){ if(isset($_SERVER['HTTP_
阅读全文
posted @ 2020-08-22 15:48 时间掉飞机
阅读(236)
评论(0)
推荐(0)
2020年8月19日
php CURL
摘要: function getJson($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURL
阅读全文
posted @ 2020-08-19 08:44 时间掉飞机
阅读(136)
评论(0)
推荐(0)
2020年8月13日
微信网页分享-1.6.0版本
摘要: 注:开发文档地址:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html 准备工作: 1.先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”。 2.需要用到wx模块 引入 <scrip
阅读全文
posted @ 2020-08-13 18:26 时间掉飞机
阅读(1252)
评论(0)
推荐(0)
2020年3月30日
mamp 安装php扩展
摘要: 1.下载扩展源码 https://pecl.php.net/package/redis 2.解压进入扩展目录 3./Applications/MAMP/bin/php/php7.3.1/bin/phpize (中间php版本根据自身环境来填写) [ M1 安装编译 指定x86_64架构 gcc编译器
阅读全文
posted @ 2020-03-30 01:14 时间掉飞机
阅读(569)
评论(0)
推荐(0)
2020年3月23日
php查询所有文件
摘要: <?php $dir = '/Applications/MAMP/htdocs'; function getDir($dir){ if(!is_dir($dir)) return '请提供正确的路径!'; $arr = []; $res = opendir($dir); while($list =
阅读全文
posted @ 2020-03-23 01:05 时间掉飞机
阅读(190)
评论(0)
推荐(0)
php腾讯云发送短信
摘要: //下面代码是在Thinkphp6写的,短信目前还能发送,根据自己情况改就行(发送短信需要用到后面的两个类文件) //注:这个只能用来测试用 <?php declare(strict_types=1); namespace app\common\lib\sms; use app\common\lib
阅读全文
posted @ 2020-03-23 00:27 时间掉飞机
阅读(866)
评论(0)
推荐(0)
2020年3月22日
php正则抓取图片(抓取图片403处理)
摘要: <?php //抓取页面图片的时候防止图片403(防止盗链) echo "<meta name='referrer' content='no-referrer'>"; $list = file_get_contents($url); $k = preg_match_all('/<img [^>]*
阅读全文
posted @ 2020-03-22 23:43 时间掉飞机
阅读(164)
评论(0)
推荐(0)
2020年1月12日
composer下载慢
摘要: 阿里的镜像 composer config repo.packagist composer https://mirrors.aliyun.com/composer/
阅读全文
posted @ 2020-01-12 20:42 时间掉飞机
阅读(279)
评论(0)
推荐(0)
2019年9月19日
js字符串切割,替换函数封装
摘要: //数据类型转字符 tostring var n = 12; var n = n.toString(); //console.log(n); //console.log(typeof n); //字符分割 str.split(通过指定字符分割,返回的最大长度) var string = 'ssdgsfys和你ss好我是林和你ss是的回复ss和你是玩儿u好ss宿舍的积分'; var str = sp
阅读全文
posted @ 2019-09-19 14:22 时间掉飞机
阅读(1018)
评论(1)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告