banner rotator advertising with probability

Posted by cosy on Stack Overflow See other posts from Stack Overflow or by cosy
Published on 2010-05-01T22:20:55Z Indexed on 2010/05/01 22:27 UTC
Read the original article Hit count: 246

Filed under:
|
|

I have banners advertising with number of views, like CPM system. And for example :

i have 3 banner:
banner1 with 20.000 nr of views
banner2 with 10.000 nr of views
banner3 with 5.000 nr of views

and on my website the banner must to appear in this position (when the page is reloaded) :

banner1 banner2 banner1 banner2 banner3

if the number of views is higher then the probability of apparition is higher

how can i do this in php?

Thanks a lot for helping :)

© Stack Overflow or respective owner

Related posts about php

Related posts about banners