会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
淘^*(- -)*^
爱折腾,爱网站;用简单的方法做好的网站。做自己喜欢的!--淘^*(- -)*^.
博客园
首页
新随笔
新文章
联系
管理
订阅
上一页
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
摘要: 更新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日
用php获取本周,上周,本月,上月,本季度日期的代码
摘要: 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日
Emoji表情符号录入MySQL数据库失败解决
摘要: 让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日
PHPExcel读取Excel文件的实现代码
摘要: 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日
lnmp 基础设置
摘要: 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日
mysql 自动备份导出到sql
摘要: 创建一个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规格选择效果,没有商品的不能选中,选择顺序不影响展示结果
摘要: 商品SKU选择DEMO attr1 10额 11 attr2 20 ...
阅读全文
posted @ 2016-06-01 10:17 whlives
阅读(4523)
评论(0)
推荐(0)
2016年5月26日
jquery.qrcode 生成二维码带logo
摘要: 注意: 增加中间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日
通过top命令发现plymouthd进程cpu负载达到近100% 解决办法
摘要: 最近几天一直遇到服务器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
下一页
公告