I've searched and asked and can't find any script that does what I need.
Reference: http://www.phpbuilder.com/board/showthread.php?s=&threadid=10219149
So I now am deciding to create a simple one but I need some help. I want the script to go through a list of servers and each time the file is requested, it chooses the next server, so that it rotates the servers so theres an even load on them. I also want it to check to make sure that it gets a valid connection(because the server might be timed out or reached it limit) and if not, go to the next server on the list.
Lets say 5 people want to download the file (and I have 4 servers with the file):
First person goes to download the file and the server checks to make sure that server1 is good and if so it connects him to server1. (If not, goes to server2.)
Second person goes to download the the file and the script starts with server2. If good connects to it.
Third person goes to download the file and it tries to connect to server3 first.
When it gets to the end of the servers it goes back to server1.
Does everyone understand what I'm trying to say or do I need to explain it better?
Thank you for your time, I hope you can help me.