Hi!
I am thinking of some plugin code that does the following:
- Runs curl twice and pulls a URL from each site
- Compares to see which one is faster (by some significant margin)
- Changes the a value in $vbphrase[image_server] based on the results.
The reason I want to change $vbphrase[image_server] is that I use it in a number of templates in a URL, for example:
http://$vbphrase[image_server]/images/bigimage.jpg
I want to change the image_server based on the performance of the network.
More importantly, if one server is down, I want to automatically switch $vbphrase[image_server] over to the other one.
Any suggestions?