不好意思,就是从这个网页中抓取http://202.123.66.216//server-status?auto显示内容为:BusyWorkers: 1/IdleWorkers: 49/CPULoad: 1.77293/ReqPerSec: .507522

解决方案 »

  1.   

    源内容没有BusyWorkers和IdleWorkers
    而且值也不一样,不知道如何计算
      

  2.   

    <?php
    $content = 'Total Accesses: 23522059
    Total kBytes: 150011086
    CPULoad: .0489641
    Uptime: 11298856
    ReqPerSec: 2.08181
    BytesPerSec: 13595.3
    BytesPerReq: 6530.52
    BusyServers: 15
    IdleServers: 12
    Scoreboard: _WWWWW__W_W__W__W__WWWWW__W.';
    preg_match_all("/^.+BusyWorkers: 1\/IdleWorkers: 49\/CPULoad: 1.77293\/ReqPerSec: .507522.*$/is", $content, $matches);
    print_r($matches);
    ?>