摘要: 1、首先需要引用下面两个文件 <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" /> <script src="https://cdn.datatables.n 阅读全文
posted @ 2023-11-06 10:37 一天天写BUG 阅读(15) 评论(0) 推荐(0) 编辑
摘要: $tldextract = new TLDExtract(); $tld = $tldextract->extract($host,false); $root_domain = $tld->tld?$tld->domain.'.'.$tld->tld:$tld->domain; 阅读全文
posted @ 2022-01-25 15:46 一天天写BUG 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1.$file = 'x.y.z.png'; echo substr(strrchr($file, '.'), 1); 解析:strrchr($file, '.') strrchr() 函数查找字符串在另一个字符串中最后一次出现的位置,并返回从该位置到字符串结尾的所有字符 2.$file = 'x. 阅读全文
posted @ 2020-09-22 11:12 一天天写BUG 阅读(197) 评论(0) 推荐(0) 编辑
摘要: /** * @param $url * @param $data * @param string $method * @param string $type * @param array $headers * @return bool|string */ function curlpost($url 阅读全文
posted @ 2019-07-03 13:49 一天天写BUG 阅读(8790) 评论(0) 推荐(0) 编辑
摘要: $regex = '[\u4e00-\u9fa5]'; //匹配中文字符的正则表达式 $regex = '^[\u4E00-\u9FA5A-Za-z0-9]+$'; or $regex = '^[\u4E00-\u9FA5A-Za-z0-9]{2,20}$'; //中文、英文、数字但不包括下划线等符 阅读全文
posted @ 2019-05-28 14:31 一天天写BUG 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 优化成本: 硬件>系统配置>数据库表结构>SQL及索引 优化效果: 硬件<系统配置<数据库表结构<SQL及索引 本文我们就来谈谈 MySQL 中常用的 SQL 优化方法,利用好这些方法会让你的 MySQL 效率提高提升至少 3 倍。 1、EXPLAIN 做 MySQL 优化,我们要善用 EXPLAI 阅读全文
posted @ 2019-05-23 15:39 一天天写BUG 阅读(554) 评论(0) 推荐(0) 编辑
摘要: git clone命令笔记 git clone命令笔记 作用:远程克隆版本库 1. 克隆版本库 git clone <版本库的网址> git clone zoran@192.168.2.167:/data/gitdata/gittest.git git clone https://github.co 阅读全文
posted @ 2019-05-23 15:11 一天天写BUG 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 1. 全局操作 git --version //git 机器上是否存在 git init --bare project.git //服务端:初始化一个新的仓库 chown -R zhangsan:zhangsan project.git/ //修改仓库的权限 2. 添加、提交修改、对比、重命名 添加 阅读全文
posted @ 2019-05-23 14:58 一天天写BUG 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-23 14:56 一天天写BUG 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 壹. array_dot() array_dot () 辅助函数允许你将多维数组转换为使用点符号的一维数组。 贰. array_get() array_get() 函数使用点符号从多维数组中检索值。 叁. public_path() public_path() 返回 Laravel 应用程序中公共目 阅读全文
posted @ 2019-04-19 16:54 一天天写BUG 阅读(828) 评论(0) 推荐(0) 编辑