Page 1 of 1

Find CPU utilization?

Posted: Wed Jan 14, 2004 1:37 pm
by batatudo
Hi

I need a function in PHP to get the CPU utilization of a remote server.
Why? because I have 4 servers running windows 2000 IIS 5.0 and I want to redirect the connection to the less busiest server.

thanks

Posted: Wed Jan 14, 2004 2:08 pm
by Straterra
I don't think you could make something like this..HOWEVER, if you wrote a VB or C program that finds the CPU load of the current machine, you could use sockets to get this information, and use PHP to see which has the least load and do whatever you want with the information.