上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
2016年8月22日
摘要: echo date("Ymd",strtotime("now")), "\n"; echo date("Ymd",strtotime("-1 week Monday")), "\n"; echo date("Ymd",strtotime("-1 week Sunday")), "\n"; echo date("Ymd",strtotime("+0 week Monday")), 阅读全文
posted @ 2016-08-22 14:25 whlives 阅读(6261) 评论(0) 推荐(0) 编辑
2016年8月8日
摘要: 让MySQL支持Emoji表情,涉及无线相关的 MySQL 数据库建议都提前采用 utf8mb4 字符集。 utf8mb4和utf8到底有什么区别呢?原来以往的mysql的utf8一个字符最多3字节,而utf8mb4则扩展到一个字符最多能有4字节,所以能支持更多的字符集。 1.设置对应的要保存Emo 阅读全文
posted @ 2016-08-08 10:55 whlives 阅读(289) 评论(0) 推荐(0) 编辑
2016年8月4日
摘要: function getFirstChar($string) { $firstCharOrd = ord(strtoupper($string{0})); if (($firstCharOrd >= 65 && $firstCharOrd = 48 && $firstCharOrd =- 20319 && $asc =- 20283 && $asc =- 1977... 阅读全文
posted @ 2016-08-04 16:16 whlives 阅读(269) 评论(0) 推荐(0) 编辑
2016年7月3日
摘要: canRead($filePath)){ $PHPReader = new PHPExcel_Reader_Excel5(); if(!$PHPReader->canRead($filePath)){ echo 'no Excel'; return ; } } $PHPExcel = $PHPReader->load($fi... 阅读全文
posted @ 2016-07-03 16:06 whlives 阅读(10572) 评论(0) 推荐(0) 编辑
2016年7月1日
摘要: 1、设置ci、tp、laravel重写,去掉index.php 2、开启php-fpm错误 编辑/usr/local/php/etc/php-fpm.conf文件,在后面加上一下代码 3、关闭跨目录访问 4、只安装redis扩展 阅读全文
posted @ 2016-07-01 15:49 whlives 阅读(289) 评论(0) 推荐(0) 编辑
2016年6月8日
摘要: 创建一个sh文件 vi mysql_auto.sh写入如下代码 导出单个数据库 /www/wdlinux/mysql/bin/mysqldump -uroot -p123456 database > /www/backup/mysql_auto/`date +%Y-%m-%d%H:%M:%S`dat 阅读全文
posted @ 2016-06-08 15:26 whlives 阅读(383) 评论(0) 推荐(0) 编辑
2016年6月1日
摘要: 商品SKU选择DEMO attr1 10额 11 attr2 20 ... 阅读全文
posted @ 2016-06-01 10:17 whlives 阅读(4480) 评论(0) 推荐(0) 编辑
2016年5月26日
摘要: 注意: 增加中间logo的时候, 嵌入的 logo 的 img 对象 <img src="">,直接传 logo 的 url 并没有用,会直接报错出来,必须用img标签的形式。 当 render 为 canvas 时, img.src 可为 非同域当 render 为 image 时, img.sr 阅读全文
posted @ 2016-05-26 14:46 whlives 阅读(15786) 评论(1) 推荐(1) 编辑
2016年3月31日
摘要: 最近几天一直遇到服务器cpu100%, 通过top命令发现plymouthd进程cpu负载达到近100% 解决方法:打开 /boot/grub/menu.lst , 去掉 “rhgb quiet”这两个参数 ,然后重启 阅读全文
posted @ 2016-03-31 17:56 whlives 阅读(5952) 评论(1) 推荐(0) 编辑
2016年3月29日
摘要: 装了sourceTree一直没有怎么用,今天试着用用,居然报错 can't locate SVN/Core.pm 详细报错如下: 网上找到解决办法 但是运行发现提示错误 最后在一个国外的网友分享下找到了解决办法 完美运行了 阅读全文
posted @ 2016-03-29 09:28 whlives 阅读(6716) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页