Load Balance by alternating links?

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
mccommunity
Forum Commoner
Posts: 62
Joined: Mon Oct 07, 2002 8:55 am

Load Balance by alternating links?

Post by mccommunity »

I would like to rotate through links 1-4 when someone hits the page to load balance. For example the first person to hit the page would go to link1 the second person would have link2 showing and could click it to go to link2 the third person would have link3 showing and would click it to enter link 3 and so on. Any ideas? Thanks a lot of any input.



PHP Newby :roll:
User avatar
mr_griff
Forum Commoner
Posts: 64
Joined: Tue Sep 17, 2002 11:11 am
Location: Bozeman, Montana

Post by mr_griff »

If you code makes use of sessions, you will have to have a central place to store the session data or sessions will be lost at the user travels from one server to the next. However if you still want to setup something like that, look into round-robin DNS. That way you don't need to handle the load balancing in your code.
Post Reply