09 2016 档案

摘要:1 /** 2 * 把KB转化为KB及以上单位 3 * @param int $kb 4 * @return string $new_val 5 */ 6 function return_over_kb($kb) 7 { 8 $kb /= 1024; 9 $unit = 0; // 0KB/MB 1GB 2TB 3PB 4EB 10 w... 阅读全文
posted @ 2016-09-14 12:16 gentsir 阅读(664) 评论(0) 推荐(0) 编辑
摘要:1、借鉴评论的方法[20170309 edit] 2、old方法 $last_month = date('Y-m', strtotime('last month')); $last['first'] = $last_month . '-01 00:00:00';$last['end'] = date 阅读全文
posted @ 2016-09-09 18:51 gentsir 阅读(2022) 评论(1) 推荐(0) 编辑
摘要:一、安装前的准备工作 1、更新系统、禁止SELINUX、安装php、MySQL、Nngix所依赖的包、删除系统自带的mysql配置文件 [root@localhost ~]# yum -y update [root@localhost ~]# vi /etc/selinux/config # 设置S 阅读全文
posted @ 2016-09-01 13:18 gentsir 阅读(926) 评论(3) 推荐(0) 编辑

点击右上角即可分享
微信分享提示