上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 58 下一页
摘要: get_file_contents_on_line.php 阅读全文
posted @ 2019-01-01 21:31 栖息地 阅读(2568) 评论(0) 推荐(0)
摘要: 中文截取 阅读全文
posted @ 2019-01-01 21:24 栖息地 阅读(384) 评论(0) 推荐(0)
摘要: createQrcode.php 阅读全文
posted @ 2019-01-01 21:23 栖息地 阅读(450) 评论(0) 推荐(0)
摘要: ``` function readDirFiles($dir){ $files= []; $queue=[realpath($dir)]; $currentPath = current($queue); while($currentPath) { $path = $currentPath; if (is_dir($path) &&... 阅读全文
posted @ 2019-01-01 21:22 栖息地 阅读(165) 评论(0) 推荐(0)
摘要: ``` function getClientIp($type = 0) { $type = $type ? 1 : 0; static $ip = NULL; if ($ip !== NULL) return $ip[$type]; if($_SERVER['HTTP_X_REAL_IP']){//nginx 代理模式下,获取客户端真实IP ... 阅读全文
posted @ 2018-12-31 17:14 栖息地 阅读(191) 评论(0) 推荐(0)
摘要: 开发中经常用到时间的一些操作,比如昨天,今天,前天,近七天,一周等等。 实例化这个对象 阅读全文
posted @ 2018-12-31 17:12 栖息地 阅读(169) 评论(0) 推荐(0)
摘要: PHP将Base64图片转换为本地图片并保存 阅读全文
posted @ 2018-12-31 17:07 栖息地 阅读(3644) 评论(0) 推荐(0)
摘要: php中奖概率算法,可用于刮刮卡,大转盘等抽奖算法。用法很简单,代码里有详细注释说明,一看就懂 阅读全文
posted @ 2018-12-31 17:06 栖息地 阅读(5618) 评论(0) 推荐(0)
摘要: mysql性能优化的一些建议 1、EXPLAIN 你的 SELECT 查询 查看rows列可以让我们找到潜在的性能问题。 2、为关键字段添加索引,比如:where, order by, group by等后面的字段 注意:like '%abc%'; 是不会用到索引的 只有 like 'abc%' 才 阅读全文
posted @ 2018-12-31 17:05 栖息地 阅读(137) 评论(0) 推荐(0)
摘要: ``` 先创建一个demo.php; 然后创建一个imgcode.php ``` 阅读全文
posted @ 2018-12-31 17:04 栖息地 阅读(114) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 58 下一页