- 博客(46)
- 收藏
- 关注
原创 yii2 在宝塔启动supervisor 命令及其配置
[program:1]command=/usr/bin/php /www/wwwroot/tordax.deveapp.cn/yii queue/listen --verbose=1 --color=0directory=/www/wwwroot/tordax.deveapp.cnautorestart=truestartsecs=3startretries=3stdout_logfile=/www/server/panel/plugin/supervisor/log/1.out.logstd
2020-12-30 10:42:09
706
原创 tp5 thinkphp 使用phpqrcode生成带Logo的二维码
https://www.cnblogs.com/yehuisir/p/11429908.html1. composer require aferrandini/phpqrcode//生成二维码 //2. 在生成的二维码中加上logo(生成图片文件) public function scerweima1($text){ //ech...
2019-10-29 16:09:41
694
原创 小程序授权
public function authorization() { $mall_config = config('mall_config'); $APPID = $mall_config['APPID'];//自己配置 $AppSecret = $mall_config['AppSecret'];//自己配置 $da...
2019-08-27 08:48:28
173
原创 tp5 接口token验证码
protected $noNeedLogin = []; public function _initialize() { parent::_initialize(); $post_data['token']=get_token(); if ($this->noNeedLogin){ $controlle...
2019-08-24 10:44:34
1137
原创 workman-GatewayWorker学习记录
// 当有客户端连接时,将client_id返回,让mvc框架判断当前uid并执行绑定 public static function onConnect($client_id) { Gateway::sendToClient($client_id, json_encode(array( 'type' => 'init',...
2019-08-23 17:50:19
214
原创 城市列表取汉字的第一个字的首字母并排序功能
/*** 取汉字的第一个字的首字母* @param type $str* @return string|null* @user qichao* @date 2017-04-13*/public function _getFirstCharter($str){ if(empty($str)) {return '';} $fchar=ord($str{0});...
2019-08-19 10:14:28
255
转载 实现JavaScript分片上传大视频到七牛云实例
https://blog.csdn.net/weixin_34228617/article/details/93033483
2019-08-06 11:00:52
2476
原创 yii2中gridview使用技巧——全选等批量操作
http://www.xiaochengfu.com/index.php/index/detail/aid/68.html
2019-06-14 17:32:37
847
原创 tp合成二维码海报
一.生成二维码header('Content-Type:text/html;charset=UTF-8');$_var_26 = '';$url = $_var_26 . '/app/index/qudao.html?uid=' . base64_encode($_var_23);Loader::import('phpqrcode.phpqrcode',EXTEND_PATH,'....
2019-05-23 01:20:27
922
原创 PHP代码加密
1.PHP代码加密(http://phpjiami.com)https://www.phpjiami.com/article/50.html2.
2019-04-24 09:09:19
123
原创 yii2 https 阿里云nginx
server { listen 443; server_name movie.cdydd.cn; ssl on; root /data/wwwroot/movie/public; index index.html index.htm index.php; ssl_certificate cert/1793558_movie.cdydd.cn.pem...
2019-01-30 18:00:36
360
原创 以太坊web3
https://blog.csdn.net/fangdengfu123/article/details/82621537https://www.jianshu.com/p/a5962ebf5df1https://documenter.getpostman.com/view/788039/RWgwRbCrhttps://etherscan.iohttps://www.zbg.com/...
2018-12-17 14:19:44
2508
原创 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1576960 bytes)
@ini_set('memory_limit', '512M');
2018-12-04 10:06:50
3686
原创 yii2 多图上传常用插件
1.多图上传插件http://www.yii-china.com/post/detail/538.html(1).将文件放入(2)设置config(3).新建的方法(4).修改随机数
2018-11-30 11:52:59
454
原创 git,yii,composer
1.current($merchant->getFirstErrors())磊哥项目部署http://git.besoft.top/by/project.git 分支名:zl创建分支:git clone -b htsp http://git.besoft.top/by/share-tour.git htsp(第一个? htsp是分支名? 第二个是更新到指定目录)g...
2018-11-06 21:31:31
540
原创 宝塔配置定时任务 lnmp定时任务
lnmp:*/1 * * * * /usr/local/php/bin/php /data/wwwroot/ibybank.cn/yii crontab/index >> /data/wwwroot/ibybank.cn/crontab.log
2018-10-22 10:42:52
12394
原创 服务器配置Token验证失败
放在页面顶部即可<?php if(strtolower($_SERVER['REQUEST_METHOD']) == 'get') { file_put_contents('weixin_log.txt', "IP=".$_SERVER['REMOTE_ADDR'].PHP_EOL,FILE_APPEND); //记录访问IP到log日志 ...
2018-06-28 23:13:33
1405
原创 laravel-admin
建模型cmd命令: php artisan make:model aa建控制器: php artisan admin:make ComplaintController --model=App\Models\Complaint
2018-06-23 14:37:32
354
原创 lnmp自动安装环境
service nginx restart linux重启nginxnginx -s reload linux 重新加载文件文件1.https://oneinstack.com/auto/2.lnmp:https://blog.linuxeye.cn/31.html
2018-06-20 16:28:14
153
原创 svn同步更新bat脚本
新建post-commit.bat脚本内容如下:@echo off "C:\Program Files\VisualSVN Server\bin\svn.exe" cleanup "D:\wwwroot\ThinkCMF""C:\Program Files\VisualSVN Server\bin\svn.exe" update "D:\wwwroot\ThinkCMF" --username l...
2018-06-08 00:38:06
1340
1
转载 nginx服务器绑定域名和设置根目录的方法
https://www.cnblogs.com/freeweb/p/5261077.htmlnginx服务器绑定域名以及设置根目录非常方便,首先进入nginx安装目录,然后执行 vim conf/nginx.conf 打开nginx的配置文件,找到 server { ..... ..... } 这个代码段,这段代码就是用来配置对应站点的,首先我们应该在域名控制面板将域名解析到我们...
2018-05-28 11:11:29
4227
1
原创 Laravel-5.5验证码mews captcha
laragou环境开发1、安装扩展包 ,安装前确认当前环境支持composer2、 $ composer require "mews/captcha:~2.0" (耐心等待)3、安装完成后执行:$ php artisan vendor:publish 生成配置文件config/captcha 若没有生成 可将mews里面的config里面的captcha .php复制过去3、前台...
2018-05-08 16:49:27
855
原创 linux定时任务列表命令
每天0晨php /data/wwwroot/kylin.besoft.top/yii crontab/index yii2定时任务:*/10 * * * * php /data/wwwroot/sun.besoft.top/yii match/match-status >> /data/wwwroot/sun.besoft.top/crontab.log...
2018-05-04 15:08:37
2292
原创 git常用
git教程:https://juejin.im/post/5ae072906fb9a07a9e4ce596git图形管理工具: https://www.sourcetreeapp.com/ git小命令:更新:git pull -u origin master:master master是我的分支的名称查看修改文件:git status新增修改:git add -A表示添加...
2018-05-04 13:52:30
93
原创 centos6.8 linux常用
修改后重启重启nginx和php-fpm:# service nginx restart # service php-fpm restart htop:服务器监听命令yum install -y htop
2018-04-14 22:32:48
152
转载 Linux安装MySQL
原文链接:https://blog.csdn.net/u012255016/article/details/62222959二.检查是否安装过mysql数据库,有则先卸载1.检查是否安装mysql组件
2018-04-14 02:36:29
73
原创 linux svn添加用户密码
vi /var/svn/svnrepos/conf/passwd 进入svn账号按 intro 键 进入按 i intro 进入编辑模式编辑后 按 esc 输入 :wq 保存 :wq!强制保存在输入 vi authz 按 i 编辑 给读写权限 手动更新svn到linux服务器 wwwroot 项目根目录...
2018-04-12 14:05:10
2815
原创 图片压塑插件
1.前端js图片压缩插件localResizeIMG前端代码:后端代码(将base64换成img文件并存在本地文件夹):效果大小对比:原文件:压缩后:
2018-02-06 16:27:09
219
转载 阿里云OSS上传文件 Think
1、前往阿里云github下载SDK包:https://github.com/aliyun/aliyun-oss-php-sdk/releases。这里介绍源码部署:Source code下载下来。.phar其实就是一个打包文件,直接引用后就能用,大家自己去试试吧,功能是一样的。2、将下载下来的压缩包解压后放到项目ThinkPHP\Library\Vendor\aliyun路径下。aliy
2018-02-05 11:44:29
220
原创 js图片上传预览
"http://www.w3.org/1999/xhtml"> js上传图片--预览图片 "content-type" content="text/html;charset=utf-8"/> "file" onChange="previ
2018-01-29 17:42:22
140
原创 图片裁剪上传插件—jquery.photoClip.js
分别介绍了两种插件1.cropper.js具体详情:https://segmentfault.com/a/1190000012344970(1)在页面直接使用cropper 接下来只是实现一个简单的功能:网页中可以上传图片,然后对图片进行裁剪,点击确定后会显示出裁剪后的图片。裁剪图片 .row{
2018-01-29 16:29:38
15118
1
原创 __construct()和__initialize()
__construct() 是php类的构造函数 class Action{ public function __construct() { echo 'hello Action'; }}class IndexAction extends Action{ public function __construct()
2018-01-27 14:49:59
1074
原创 全选,layui页面
代码: .pull-left{float:left;}.pull-right{float:right;}.pt10{padding-top:10px;}.bg-cc{background:#ccc;} {$typename}-订单列表 全选
2018-01-26 15:30:14
908
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人