摘要: $aa= preg_replace_callback( '/(?]*([^<]*)(?=<)/i', function ($matches) use(&$newHref) { return next($newHref); }, $aa ... 阅读全文
posted @ 2018-12-27 11:53 loweringye 阅读(757) 评论(0) 推荐(0) 编辑
摘要: $aa= preg_replace_callback( '/(?]*)(?=>)/i', function ($matches) use(&$newHref) { return next($newHref); }, $aa ... 阅读全文
posted @ 2018-12-27 11:52 loweringye 阅读(798) 评论(0) 推荐(0) 编辑
摘要: $batch_order_number = str_replace(array("\r", "\n", "\r\n",'</br>'), ',', $batch_order_number); $order_numbers = explode(',', $batch_order_number); $o 阅读全文
posted @ 2018-08-29 14:41 loweringye 阅读(371) 评论(0) 推荐(0) 编辑
摘要: preg_replace("/(\s|\&nbsp\;| |\xc2\xa0)/", "", strip_tags($str)) 阅读全文
posted @ 2018-08-01 21:04 loweringye 阅读(2339) 评论(0) 推荐(0) 编辑
摘要: rsync ssh config同步 阅读全文
posted @ 2018-04-11 17:37 loweringye 阅读(746) 评论(0) 推荐(0) 编辑
摘要: SET AUTOCOMMIT=0; BEGIN test; SELECT num FROM client WHERE id=3 FOR UPDATE; UPDATE client SET num = '1' WHERE id=3 ; COMMIT test; 阅读全文
posted @ 2018-04-11 10:08 loweringye 阅读(130) 评论(0) 推荐(0) 编辑
摘要: -s:排序方式。c , t , l , r 表示记录次数、时间、查询时间的多少、返回的记录数排序;ac , at , al , ar 表示相应的倒叙;-t:返回前面多少条的数据;-g:包含什么,大小写不敏感的; mysqldumpslow -s c -t 20 host-slow.logmysqld 阅读全文
posted @ 2018-04-09 13:49 loweringye 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1、每执行start transation autocommit 自动加一。 2、savepoint保存点,将事务保存到某一个点a,rollback to savepoint a 和 release savepoint a;rollback则整个事务回滚;如果没有手动执行commit,而是exit退 阅读全文
posted @ 2018-03-30 23:31 loweringye 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: chrome://inspect/#devices 阅读全文
posted @ 2018-03-21 10:41 loweringye 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1、screen -R session_name and exit 2、screen -S session_name -X quit 阅读全文
posted @ 2018-03-16 16:58 loweringye 阅读(186) 评论(0) 推荐(0) 编辑