08 2017 档案

摘要:string 'content' (length=7) 'c' => string 'index' (length=5) 'a' => string 'lists' (length=5) 'catid' => string '6' (length=1) ... 阅读全文
posted @ 2017-08-24 15:21 Nullnullisnull 阅读(19894) 评论(0) 推荐(0)
摘要:一些循环代码,有时候要知道页面执行的时间,可以添加以下几行代码到页面头部和尾部: 头部:$stime=microtime(true); 尾部: 最后输出: echo "<br />当前页面执行时间为:{$total} 秒"; 阅读全文
posted @ 2017-08-11 09:55 Nullnullisnull 阅读(622) 评论(0) 推荐(0)
摘要:1 查看CPU 1.1 查看CPU个数 # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l 2 **uniq命令:删除重复行;wc –l命令:统计行数** 1.2 查看CPU核数 # cat /proc/cpuinfo | grep "cp 阅读全文
posted @ 2017-08-09 15:02 Nullnullisnull 阅读(727) 评论(1) 推荐(0)