开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜