How to get Windows load average with PHP?
i would like to show the load average of my windows server thro开发者_如何学Gough a php website..
How can i do ? is there a port of uptime on windows ? how can i call the right WMI call from php ?
Thanks
Load Average in PHP on Windows :
<?php
echo system('typeperf "\Processor(*)\% Processor Time"');
?>
Maybe this is it what you looking for? Or atleast a answer on your windows uptime question.
EDIT:
Or you find something more here, just suggest you something.
EDIT:
A suggestion for your average load time : sys_getloadavg
精彩评论