上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
2016年10月24日
摘要: 更新Mac OSX XCode后Git 不能使用提示Can't start Git: /usr/bin/git 解决办法: 终端运行 sudo xcodebuild -license 同意协议就好了。 阅读全文
posted @ 2016-10-24 14:38 whlives 阅读(576) 评论(0) 推荐(0)
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 阅读(6275) 评论(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 阅读(303) 评论(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 阅读(277) 评论(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 阅读(10609) 评论(0) 推荐(0)
2016年7月1日
摘要: 1、设置ci、tp、laravel重写,去掉index.php location / { try_files $uri $uri/ /index.php?$query_string; } 2、开启php-fpm错误 编辑/usr/local/php/etc/php-fpm.conf文件,在后面加上一 阅读全文
posted @ 2016-07-01 15:49 whlives 阅读(292) 评论(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 阅读(391) 评论(0) 推荐(0)
2016年6月1日
摘要: 商品SKU选择DEMO attr1 10额 11 attr2 20 ... 阅读全文
posted @ 2016-06-01 10:17 whlives 阅读(4523) 评论(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 阅读(15916) 评论(1) 推荐(1)
2016年3月31日
摘要: 最近几天一直遇到服务器cpu100%, 通过top命令发现plymouthd进程cpu负载达到近100% 解决方法:打开 /boot/grub/menu.lst , 去掉 “rhgb quiet”这两个参数 ,然后重启 阅读全文
posted @ 2016-03-31 17:56 whlives 阅读(6158) 评论(1) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页