Jump to content

Display Server loads....


sprintlife

Recommended Posts

I found this very interesting...

 

//GET SERVER LOADS
$loadresult = @exec('uptime');
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$loadresult,$avgs);

 

Now what I wanna do is not only display server status.  But put like a color code system like RED YELLOW GREEN status on it as well.  But this is new to me that you can get server status with PHP.  If you guys can help that will be very helpful. 

Link to comment
https://forums.phpfreaks.com/topic/127441-display-server-loads/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.