Server Load
By: Daniel
Monitoring the load on your server is very important and sometimes vital. To do this very quick and easy on your linux server requires 1 line of code to get.
$load = explode(" ", exec("cat /proc/loadavg")); echo 'Server Load: '.$load[0].'% '.$load[1].'% '.$load[2].'%';
The above code will output something similar to: Server Load: 0.01% 0.02% 0.00%
**NOTE: Your server must allow you to run the exec() php command. Some hosts disable the execution of this and several other php functions.




(4 votes, average: 3.75 out of 5)
October 7th, 2008 at 9:28 pm
Hi!
I want to extend my SQL knowledge.
I red that many SQL resources and want to
read more about SQL for my work as mysql database manager.
What can you recommend?
Thanks,
Werutz