摘要: Supervisor 转(https://word.gw1770df.cc/2016-08-04/linux/supervisor-%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B/) 官网为 http://supervisord.org/ A Process Control 阅读全文
posted @ 2019-05-17 09:16 phpwyl 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 此错误是由配置错误、版本不匹配或引导安装损坏引起的。如果已经安装了引导程序和反应引导程序,则可以通过以下方式进行更改: npm install --save bootstrap@^4.0.0-alpha.6 react-bootstrap@^0.32.1 (检查package.json是否包含“bo 阅读全文
posted @ 2019-05-06 14:53 phpwyl 阅读(2369) 评论(1) 推荐(0) 编辑
摘要: public function items() { return $this->belongsToMany('App\Model\Cz\CzCourse', 'cz_picture_course', 'picture_id', 'course_id'); } //获取分类 public function getList() { ... 阅读全文
posted @ 2019-04-16 11:54 phpwyl 阅读(3728) 评论(0) 推荐(0) 编辑
摘要: 在ThinkPHP5中 发现URL 不支持典型模式访问 http://serverName/index.php(或者其它应用入口文件)/模块/控制器/操作/[参数名/参数值...] 因为默认nginx不支持PATHINFO 只能通过http://serverName/index.php(或者其它应用 阅读全文
posted @ 2019-03-06 11:39 phpwyl 阅读(1843) 评论(1) 推荐(1) 编辑
摘要: 注意 dy_headers 是 UA 阅读全文
posted @ 2019-02-27 18:44 phpwyl 阅读(1415) 评论(0) 推荐(0) 编辑
摘要: 一、 Git 常用命令速查 git branch 查看本地所有分支 git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支 git branch -r 查看远程所有分支 git commit -am "init" 提交并且加注释 git remote add origin git@192.168.1.119:ndshow git pus... 阅读全文
posted @ 2019-02-14 11:35 phpwyl 阅读(179) 评论(0) 推荐(0) 编辑
摘要: CSS HTML JS 阅读全文
posted @ 2019-01-21 17:12 phpwyl 阅读(658) 评论(0) 推荐(0) 编辑
摘要: K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGl 阅读全文
posted @ 2019-01-21 11:49 phpwyl 阅读(52) 评论(0) 推荐(0) 编辑
摘要: public function get_list($where=array(),$field="",$order = "id desc"){ $field = empty($field)?"id,dy_url,start_num,end_num,is_pay,create_time,total_num,now_num,speed,status":$field; ... 阅读全文
posted @ 2019-01-15 15:32 phpwyl 阅读(387) 评论(0) 推荐(0) 编辑
摘要: $money_reg = '/^[1-9]\d*|^[1-9]\d*.\d+[1-9]$/';if(!preg_match($money_reg, $money)){ $this->ajaxError('金额格式错误');} 阅读全文
posted @ 2018-12-26 11:08 phpwyl 阅读(4282) 评论(0) 推荐(0) 编辑
摘要: 敏感字,敏感字检测,php敏感字,php敏感字检测 阅读全文
posted @ 2018-12-05 11:52 phpwyl 阅读(697) 评论(0) 推荐(0) 编辑
摘要: <?php public function getid($dy_url){ $header=get_headers($dy_url); $str = "/^.*?(\d+).*/"; preg_match($str,$header[6],$arr); return $arr[1]; } 阅读全文
posted @ 2018-11-12 15:30 phpwyl 阅读(2294) 评论(1) 推荐(0) 编辑
摘要: 注意 当请求https的数据时,会要求证书,这时候,加上下面这两个参数,规避ssl的证书检查 阅读全文
posted @ 2018-11-12 15:28 phpwyl 阅读(1665) 评论(0) 推荐(0) 编辑
摘要: $('#txtKey').bind('keypress',function(event){ if(event.keyCode == "13") { alert(1) }}); 阅读全文
posted @ 2018-11-01 15:04 phpwyl 阅读(772) 评论(0) 推荐(0) 编辑
摘要: /** * 时间段查询条件获取 * @param string $star 获取开始时间的字段名 * @param string $end 获取结束时间的字段名 * @param string $zd 数据库where条件的字段名 */ function where_time($start='start_time',$end='end_time',$zd='create_... 阅读全文
posted @ 2018-10-23 15:04 phpwyl 阅读(2293) 评论(0) 推荐(0) 编辑
摘要: //初始化 $curl = curl_init(); //设置抓取的url curl_setopt($curl, CURLOPT_URL, 'http://www.baidu.com'); //设置头文件的信息作为数据流输出 curl_setopt($curl, CURLOPT_HEADER, 1); //设置获取的信息以文件流的形式返回,而不是直... 阅读全文
posted @ 2018-09-29 10:21 phpwyl 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 调用is_mobile 如果返回1则是手机端 如果返回0则是电脑端 阅读全文
posted @ 2018-06-07 16:42 phpwyl 阅读(1532) 评论(1) 推荐(1) 编辑
摘要: 、、、、55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 阅读全文
posted @ 2018-06-05 17:41 phpwyl 阅读(2238) 评论(0) 推荐(0) 编辑
摘要: mysql创建远程用户并授权 今天需要在本地测试系统功能,因为本地没有数据库,就需要在程序里面连接远程数据库; 先用ssh登录远程服务器,用root连上数据库看看情况; 一共有5个mysql账号,Host列可以看出来,这些账号都只支持服务器本机连接,现在我们来创建一个远程用户; 创建完成了,在程序里 阅读全文
posted @ 2018-05-03 18:48 phpwyl 阅读(149) 评论(0) 推荐(0) 编辑
摘要: php发送邮件 -------------------------------------------------------------------------------- "; $link = fsockopen($smtp,25);//socket链接 if($link){ set_... 阅读全文
posted @ 2018-04-28 13:46 phpwyl 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 通过jquery插件 FileSave.js 阅读全文
posted @ 2018-04-27 16:57 phpwyl 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-04-23 16:49 phpwyl 阅读(5129) 评论(0) 推荐(0) 编辑
摘要: autocomplete="off" 阅读全文
posted @ 2018-04-20 14:14 phpwyl 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 切换验证码 document.getElementById('img_code_1').src="__URL__/verify/"+Math.random(1,9999); 生成验证码 <img src="{:U('Home/User/verify',array())}" id="img_code_ 阅读全文
posted @ 2018-04-18 16:51 phpwyl 阅读(148) 评论(0) 推荐(0) 编辑
摘要: <?php namespace Home\Model; use Think\Model; class UserModel extends Model{ protected $patchValidate = true; protected $_validate = array( ['username','require','请输入用户名'], // 在新增的时候验证name... 阅读全文
posted @ 2018-04-18 15:45 phpwyl 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: 在Common目录中建立 function.php {$vo.goods_name|subtext=10} 调用方法传参数 阅读全文
posted @ 2018-04-17 15:16 phpwyl 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 在元素中添加onmouseover="this.style.cursor='hand'"或者 cursor:pointer; 阅读全文
posted @ 2018-04-17 14:51 phpwyl 阅读(3963) 评论(0) 推荐(0) 编辑
摘要: 在php.ini下进行更改 查找disable_function 去掉exec xsell_exec 重启php 阅读全文
posted @ 2018-04-13 17:25 phpwyl 阅读(2126) 评论(0) 推荐(0) 编辑
摘要: servers = $servers; foreach ($servers as $server) { for ($i = 0; $i virtualNodeNum; $i++) { $this->nodeList[sprintf("%u", crc32($server.'-'.$i))] = array($se... 阅读全文
posted @ 2018-04-12 16:30 phpwyl 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 解决该问题需要 清除缓存文件 将retime下的文件删除 阅读全文
posted @ 2018-04-12 16:00 phpwyl 阅读(278) 评论(0) 推荐(0) 编辑