HI I need a function to cpu load ( percentage ) and another function to get Memory load In PHP
A:
int memory_get_usage ([ bool $real_usage= false ] )
Returns the amount of memory, in bytes, that's currently being allocated to your PHP script.
I'm not sure there's a simple, portable way of measuring CPU load. Are you on Linux?
therefromhere
2009-07-11 09:53:15