用 PHP 获取系统信息
/总物理内存/ function memTotal() { $str = @file(“/proc/meminfo”); $str = implode(“”, $str); preg_match_all(“/MemTotal\s{0,}\:+\s{0,}([\d\.]+).+?MemFree\s{0,}\:+\s{0,}([\d\.]+).+?Cached\s{0,}\:+\s{0,}([\d\.
阅读更多 »
/总物理内存/ function memTotal() { $str = @file(“/proc/meminfo”); $str = implode(“”, $str); preg_match_all(“/MemTotal\s{0,}\:+\s{0,}([\d\.]+).+?MemFree\s{0,}\:+\s{0,}([\d\.]+).+?Cached\s{0,}\:+\s{0,}([\d\.
阅读更多 »