摘要: ftp.php 如下 <?php /** * Created by PhpStorm. * User: 123456 * Date: 2018/9/20 * Time: 11:15 * @author sunjiaqiang * @email 1355049422@qq.com */ namespa 阅读全文
posted @ 2022-03-19 16:58 被水遗忘の鱼 阅读(57) 评论(0) 推荐(0) 编辑
摘要: <?php /** * 公共函数 */ /** * @param $arr * @param $key_name * @return array * 将数据库中查出的列表以指定的 id 作为数组的键名 */ function convert_arr_key($arr, $key_name) { $a 阅读全文
posted @ 2022-03-19 16:56 被水遗忘の鱼 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 先定义一个函数 <?php /** * 获取favion图标 * @param $url 目标url * @param $path 保存路径 */ function getFav($url, $path) { $curl = get_url_content($url); $file = $curl[ 阅读全文
posted @ 2022-03-19 16:01 被水遗忘の鱼 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 配置微信公众平台时,测试了 n 个小时总是 token 验证失败。及时用网页打开链接并原样返回 echostr 任然 不解决问题。最后查到是缓冲区中存在其他输出,导致 echostr 不能 “原样” 返回。在 return $echostr 之前 ob_clean () 即可 php ob_clea 阅读全文
posted @ 2022-03-19 14:02 被水遗忘の鱼 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.开启远程mysql数据库访问 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION; 2.操作完后切记执行以下命令刷新权限 FLUSH PRIVILEGES; mysql默认 阅读全文
posted @ 2022-03-19 13:47 被水遗忘の鱼 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1、远端git库的创建和初始化 创建git仓库可以在远端创建一个仓库, 然后check到本地,在本地的文件里创建工程文件,然后提交 也可以将本地现有的工程和远端的空仓库关联 本地创建了一个工程 iOSDemo 运行没有错误,就可以提交到远端了。 一般情况下,远端仓库创建成功之后会有以下提示 ,如仓库 阅读全文
posted @ 2022-03-19 13:42 被水遗忘の鱼 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 开启邮件smtp服务 设置授权码 引入phpmailer类,smtp类 本地下载 https://github.com/PHPMailer/PHPMailer //下载PHPMailer并开启php_openssl、php_socket扩展 include_once 'PHPMailer.php'; 阅读全文
posted @ 2022-03-19 13:39 被水遗忘の鱼 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 添加 * @method Query where(mixed $field, string $op = null, mixed $condition = null) static 查询条件 * @method Query whereTime(string $field, string $op, mi 阅读全文
posted @ 2022-03-19 13:26 被水遗忘の鱼 阅读(81) 评论(0) 推荐(0) 编辑