上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
摘要: $where = function ($query) use ($map1, $map2) { $query->whereOr(function ($query) use ($map1) { $query->where($map1); })->whereOr(function ($query) us 阅读全文
posted @ 2020-10-16 14:10 pengcx 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 一维数组求差集 key值不能变化 比如 $a = ['01', '12']; $b = ['01', '02', '03', ....,'13'] $c = array_diff($b,$a)); 返回的结果为 array (size=11) 1 => string '02' (length=2) 阅读全文
posted @ 2020-10-14 18:15 pengcx 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 转载 http://www.youhutong.com/index.php/article/index/210.html 一、做页面开发时我们基本都会需要解决的问题: 1、解决ie9以下浏览器对html5新增标签的不识别,并导致CSS不起作用的问题。 2、让不支持css3 Media Query的浏 阅读全文
posted @ 2020-10-09 15:39 pengcx 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 一、phpmailer 安装或者下载方式: 1、从 github 上下载: https://github.com/PHPMailer/PHPMailer/ 2、使用 composer 安装: composer require phpmailer/phpmailer 二、开启QQ相关服务 设置-》账户 阅读全文
posted @ 2020-09-09 17:45 pengcx 阅读(160) 评论(0) 推荐(0) 编辑
摘要: public function score() { $rateTotal = 25;//总评分人数 $rateScore = 7.5;//最终评分 10分制 $totalScore = intval($rateTotal * $rateScore / 2); //总评分 转化为5分制 $percen 阅读全文
posted @ 2020-09-08 16:07 pengcx 阅读(395) 评论(0) 推荐(0) 编辑
摘要: function sign_count(){ $cur_day = date('Ymd',time()); $arr = [ ['id' => 7, 'sign_time' => '20200907'], ['id' => 6, 'sign_time' => '20200905'], ['id' = 阅读全文
posted @ 2020-09-07 15:55 pengcx 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-26 16:24 pengcx 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1、在配置文件目录下如:/usr/local/nginx/conf下创建黑名单文件ip.black(叫啥都行) 在文件内容写上列入黑名单的IP,格式为deny IP; #拒绝访问IP deny xxxxxxx; 2、在nginx.conf进行配置 阅读全文
posted @ 2020-07-09 11:09 pengcx 阅读(3534) 评论(0) 推荐(0) 编辑
摘要: 1、在gitee创建项目 2、进入本地项目目录 git init #初始化 git add . #将当前目录加入到git git commit -m "first commit(提交的描述信息)" #git提交到本地版本库 git remote add origin https://gitee.co 阅读全文
posted @ 2020-06-29 11:29 pengcx 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、killall php-fpm 2、systemctl start php-fpm 阅读全文
posted @ 2020-06-22 17:54 pengcx 阅读(1390) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页