上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: public function createExcel($result=[],$fileName=''){ \think\Loader::import('extend.excel.PHPExcel',ROOT_PATH); import('Org.Util.Util'); $Util = new \ 阅读全文
posted @ 2019-06-13 15:50 (BACH) 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head><meta charset="UTF-8"> <title>XMLHttpRequest上传文件</title> <script type="text/javascript">//图片上传var xhr;//上传文件方法function Upla 阅读全文
posted @ 2019-05-10 17:37 (BACH) 阅读(252) 评论(0) 推荐(0) 编辑
摘要: class image_blur{ /** * 图片高斯模糊(适用于png/jpg/gif格式) * @param $srcImg 原图片 * @param $savepath 保存路径 * @param $savename 保存名字 * @param $positon 模糊程度 * *基于Mart 阅读全文
posted @ 2019-05-09 13:32 (BACH) 阅读(650) 评论(0) 推荐(0) 编辑
摘要: //验证身份证是否有效function validateIDCard($IDCard) { if (strlen($IDCard) == 18) { return check18IDCard($IDCard); } elseif ((strlen($IDCard) == 15)) { $IDCard 阅读全文
posted @ 2019-04-01 09:53 (BACH) 阅读(1195) 评论(1) 推荐(0) 编辑
摘要: (1)工具类:pictureColor.php (2)调用工具类:index.php 阅读全文
posted @ 2018-12-07 15:51 (BACH) 阅读(902) 评论(0) 推荐(0) 编辑
摘要: $imageFileName = './test2.jpg';$uploadfile_resize = $imageFileName;$pic_width_max = 1000;$pic_height_max = 1000;$file_type = getimagesize($imageFileNa 阅读全文
posted @ 2018-12-07 15:48 (BACH) 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 服务器上装了reids3.2版本,配置文件中已将bind的选项注释掉, linux的iptables的redis端口也开放 其它机子的PHP访问redis爆“protocol error, got 'n' as reply type byte ”错误 解决办法: 在redis配置文件redis.co 阅读全文
posted @ 2018-11-23 09:30 (BACH) 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: vim按d表示剪切 按dd剪切一行 vim命令:命令模式 /关键字 n继续向下查找vim的多行注释: 1.按ctrl + v进入 visual block模式 2.按上下选中要注释的行 3.按大写字母I,再插入注释符,例如// 4.按两下esc 5.按ctrl + v进入 visual block模 阅读全文
posted @ 2018-11-22 11:52 (BACH) 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: 直接 ssh-keygen -t rsa -C "*********@qq.com"也行 git config --global user.name “用户名” 用户名随便起!你能记住就行! 没报错就接着来! git config --global user.email “邮箱” 没报错就是好消息! 阅读全文
posted @ 2018-10-31 15:31 (BACH) 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Linux 的软件安装目录是也是有讲究的,理解这一点,在对系统管理是有益的 /usr:系统级的目录,可以理解为C:/Windows/,/usr/lib理解为C:/Windows/System32。/usr/local:用户级的程序目录,可以理解为C:/Progrem Files/。用户自己编译的软件 阅读全文
posted @ 2018-10-31 10:05 (BACH) 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页