chuck.bunn@zypath.com
03-06-2009, 08:27 AM
Hi,
I am running a php program to get server up time sent to me and I am having trouble getting 'cpuinfo'. The system gives me a permission denied. As a test I type the following in a terminal window:
/proc/cpuinfo
and I get the permission denied. Is there another way to get this info. In the php file I use the following line:
$procInfo = @file_get_contents('/proc/cpuinfo');
$numProcs = preg_match_all("/processor[ \t]+:[ \t]+[0-9]+/", $procInfo, $matches);
Thanks
I am running a php program to get server up time sent to me and I am having trouble getting 'cpuinfo'. The system gives me a permission denied. As a test I type the following in a terminal window:
/proc/cpuinfo
and I get the permission denied. Is there another way to get this info. In the php file I use the following line:
$procInfo = @file_get_contents('/proc/cpuinfo');
$numProcs = preg_match_all("/processor[ \t]+:[ \t]+[0-9]+/", $procInfo, $matches);
Thanks