Announcement

Collapse
No announcement yet.

display current serverload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • display current serverload

    Hey

    How can i display the current serverload with php?
    I searched via google but the only thing i found was a *.pl script
    That's the end of that!

  • #2
    PHP Code:
    <?php
    if ( $fh = @fopen('/proc/loadavg''r') )
    {
        
    $load_avg explode(' ', @fread($fh6));
        @
    fclose$fh );
        echo 
    $load_avg[0];
    }
    ?>
    With Linux, that's it
    Different under BSD

    Comment


    • #3
      thank you
      That's the end of that!

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X