Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
VBAssassin
Scott Thompson
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 90 Days Ago
460 Views
Received 0 Ratings
More Codes By This Author
Slime Wars Game v1
Pagination Class
Template Class (no evals...
Weighted Picking of URLs...
Easily make anything fade...
Articles By This Author
[PHP] - Lets kill the com...
How to use Memcache on Wi...
PHP Sessions = Member Dat...
Speed Up Delivery of your...
AJAX - When to use it?

Weighted Picking of URLs (Affiliates)


Description
Got a site where you have affiliates and they can earn points? And you want to pick a random affiliate to show on your site? But you want an affiliate with more points to be more likely to be picked? Then this is exactly what this code will do for you (the class).
Technical
A site is picked like:
site1.com
site1.com
site1.com
site2.com

where site 1 = 3 points, site 2 = 1 point and so you can see site1 is more likely to be picked.

The script is efficient in that it works with the point ranges instead of actually creating an array with the site duplicated.
Source Code
Comments
Please login to post comments.
 
Cinjection     Posted 87 Days Ago
 
 
Cool. :)
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Do you use RSS feeds?

Yes, all the time, first thing i do on the net
Sometimes, when i remember to check them
No, can't be bothered with them
No, what are they?


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
5 Days Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2008, Scott Thompson, All Rights Reserved