//Actually i check only the number of CPUs on the computer. function cpu_info () { $results = array(); $ar_buf = array(); $NbCPU=execute_program('top', '-d 1 -f /tmp/TestCPU && grep "^ [0-9]" /tmp/TestCPU | grep "%" && rm -f /tmp/TestCPU'); $NbCPUA=split("\n", $NbCPU); $cpus = 0; $cpu=array (); $cpu=$NbCPUA; foreach($cpu as $CPU) { $cpus += 1; } $results['cpus']=$cpus; return $results; }