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...
阅读全文
摘要:1、借鉴评论的方法[20170309 edit] 2、old方法 $last_month = date('Y-m', strtotime('last month')); $last['first'] = $last_month . '-01 00:00:00';$last['end'] = date
阅读全文
摘要:一、安装前的准备工作 1、更新系统、禁止SELINUX、安装php、MySQL、Nngix所依赖的包、删除系统自带的mysql配置文件 [root@localhost ~]# yum -y update [root@localhost ~]# vi /etc/selinux/config # 设置S
阅读全文