会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
淘^*(- -)*^
爱折腾,爱网站;用简单的方法做好的网站。做自己喜欢的!--淘^*(- -)*^.
博客园
首页
新随笔
新文章
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
18
下一页
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
阅读(6261)
评论(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
阅读(290)
评论(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日
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
阅读(10573)
评论(0)
推荐(0)
编辑
2016年7月1日
lnmp 基础设置
摘要: 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
阅读(290)
评论(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
阅读(384)
评论(0)
推荐(0)
编辑
2016年6月1日
商品sku规格选择效果,没有商品的不能选中,选择顺序不影响展示结果
摘要: 商品SKU选择DEMO attr1 10额 11 attr2 20 ...
阅读全文
posted @ 2016-06-01 10:17 whlives
阅读(4487)
评论(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
阅读(15814)
评论(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
阅读(6016)
评论(1)
推荐(0)
编辑
2016年3月29日
sourceTree 更新svn提示can't locate SVN/Core.pm
摘要: 装了sourceTree一直没有怎么用,今天试着用用,居然报错 can't locate SVN/Core.pm 详细报错如下: 网上找到解决办法 但是运行发现提示错误 最后在一个国外的网友分享下找到了解决办法 完美运行了
阅读全文
posted @ 2016-03-29 09:28 whlives
阅读(6726)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
10
···
18
下一页
公告