Urgent: Help with simple Adsense rotator please

Discussion in 'PHP' started by gemini181, Jan 31, 2007.

  1. #1
    I have various 'code snippets' which rotate photos, pick random numbers, ect.
    This is something I can figure out, but I'm looking for a quick simple solution (without using PHPadsNew, for example)
    ~~~~~~~~~~~~
    All I need is
    • 'sharerev.php' (for example) which contains only the Adsense code for a writer, mod, or admin.
    • ...and 'myrev.php' which has only my Google ad code
    • Now I need a flexable, easy way to 'give 80%' to sharing
    • and have mine appear ~20% of the time

    I'm 'OK' at modifying code, and just starting to learn to actually write.
    Please, give a 'basic framework' for randomly having one PHP file called on ~80% of the time, and just some ideas on a simple, basic 'actual usage example.'

    Thank you very much.
     
    gemini181, Jan 31, 2007 IP
  2. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #2
    Someone on Sitepoint gave exactly what I need (hopefully), this might help others too:

    :D
     
    gemini181, Jan 31, 2007 IP