Find CPU utilization?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
batatudo
Forum Newbie
Posts: 6
Joined: Tue Dec 30, 2003 6:28 am

Find CPU utilization?

Post 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
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post 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.
Post Reply