Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need Help With The Easiest Logic
Old 08-01-2012, 12:18 AM Need Help With The Easiest Logic
Junior Talker

Posts: 1
Trades: 0
ok so i need help in sorting out the easiest way to do this

i have 4 diffrent servers from where i can pull data what i want to do is

In the first visit it pulls data from server 1 then from the second visit it pulls data from server 2 then from server 3 and then from server 4 and 4 is used again back to 1

right now i am doing this using php random but it wont equally distribute it this way

can u tell me how to do this the easiest way ?
Bohra is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-01-2012, 07:44 AM Re: Need Help With The Easiest Logic
King Spam Talker

Posts: 1,092
Name: Paul W
Trades: 0
In the absence of any knowledge of servers or network, just do it cyclically.
__________________
Great music:
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 08-02-2012, 04:31 PM Re: Need Help With The Easiest Logic
Physicsguy's Avatar
404 - Title not found

Posts: 1,061
Name: Scott Kaye
Location: Ontario
Trades: 0
For each user?

Keep a cookie with a number called 'server' or something. When the user visits, increment it by 1, unless it's already 4, in which case set it to 1.

Then just use the cookie in the server name when you go to pull data.
__________________

Please login or register to view this content. Registration is FREE
Physicsguy is offline
Reply With Quote
View Public Profile Visit Physicsguy's homepage!
 
Reply     « Reply to Need Help With The Easiest Logic
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19937 seconds with 11 queries