会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
盘思动
三思而后折腾!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
90
91
92
93
94
95
96
97
98
···
133
下一页
2019年11月18日
mysql 日志文件mysql-bin文件清除方法,和mysql-bin相关文件的配置
摘要: 默认情况下mysql会一直保留mysql-bin文件,这样到一定时候,磁盘可能会被撑满,这时候是否可以删除这些文件呢,是否可以安全删除,是个问题。 首先要说明一下,这些文件都是mysql的日志文件,如果不做主从复制的话,基本上是没用的,虽然没用,但是不建议使用rm命令删除,这样有可能会不安全,正确的
阅读全文
posted @ 2019-11-18 14:17 盘思动
阅读(8944)
评论(1)
推荐(0)
2019年11月14日
FromXml 支付回调 xml 转数组
摘要: <pre>array(16) { ["appid"] => string(18) "xxxxxxxxxxxxxxxxxxx" ["bank_type"] => string(3) "CFT" ["c
阅读全文
posted @ 2019-11-14 11:04 盘思动
阅读(396)
评论(0)
推荐(0)
2019年11月13日
下个月此时
摘要: date("Y-m-d H:i:s",strtotime("+1 month")) 下个月今天此时 $stime = strtotime('2019-11-11'); date("Y-m-d H:i:s",strtotime("+1 month",$stime)) 距离某日期开始,下个月该时间
阅读全文
posted @ 2019-11-13 17:10 盘思动
阅读(92)
评论(0)
推荐(0)
PHP 暂停函数 sleep() 与 usleep() 的区别
摘要: 在PHP中暂停代码执行一定时间,有两个函数可以实现,一个是sleep(),另一个是usleep(),它们参数都是一个整数值。sleep()是暂停多少秒,usleep()是暂停多少微秒。 注意:usleep()单位是微秒,1秒 = 1000毫秒 ,1毫秒 = 1000微秒,即1微秒等于百万分之一秒。
阅读全文
posted @ 2019-11-13 14:47 盘思动
阅读(459)
评论(0)
推荐(0)
2019年11月2日
glob 遍历文件夹里面文件
摘要: array(9) { [0]=> string(16) "CallbackDemo.php" [1]=> string(8) "Demo.php" [2]=> string(9) "README.md" [3]=> string(15) "UnionClient.php" [4]=> string(
阅读全文
posted @ 2019-11-02 11:38 盘思动
阅读(742)
评论(0)
推荐(0)
2019年11月1日
preg_match 第三个参数,
摘要: //请修改变量p的正则表达式,使他能够匹配str中的姓名 $p = '/name:([\w\s]+)/'; $str = "name:steven jobs"; preg_match($p, $str, $match); print_r($match);Array ( [0] => name:steven jobs [1] => steven jobs ) //??????
阅读全文
posted @ 2019-11-01 20:52 盘思动
阅读(262)
评论(0)
推荐(0)
preg_quote
摘要: $p = 'http://'; $p = '/'.preg_quote($p, '/').'/'; echo $p;/http\:\/\//
阅读全文
posted @ 2019-11-01 20:31 盘思动
阅读(117)
评论(0)
推荐(0)
array_slice
摘要: array_slice 分割数组, 效果相当于 substr 类似字符串操作
阅读全文
posted @ 2019-11-01 13:44 盘思动
阅读(135)
评论(0)
推荐(0)
ubuntu 安装nodejs
摘要: 然后vim /etc/profile,在最下面添加 export PATH=$PATH: 后面跟上node下bin目录的路径 立即生效 sudo apt-get install nodejs // 安装 OK!安装成功!
阅读全文
posted @ 2019-11-01 09:35 盘思动
阅读(618)
评论(0)
推荐(0)
2019年10月31日
php 类的属性--???
摘要: <?php class Car { private function __construct() { echo 'object create'; } private static $_object = null; public static function getInstance() { if (
阅读全文
posted @ 2019-10-31 22:33 盘思动
阅读(353)
评论(0)
推荐(0)
上一页
1
···
90
91
92
93
94
95
96
97
98
···
133
下一页
公告