All you clever coder types ! Beginners PHP Question
Just starting 'learning' PHP...
Can a more experienced coder show me the way?
What Im looking to do, is to have a sig on a surfer forum that reads 'CLICK HERE! LUCKY DIP!'
They click the link it goes to one-of-my-domians.com/php-page.php
That php page has 3 or 5 different URLs programmed into it... ie domain-1.com/blog/ domain-2.com/sexygirls/index.html and domain-3.com etc etc...
When the sig clicking surfer hits the php page at one-of-my-domians.com/php-page.php it randomly chooses one of the 3 or 5 domains, and sends him to it... In other words, per click each domain has a 1 in 3 or 1 in 5 chance of getting the 'hit'...
I'm not interested in 'Weighting' the results... Im just trying to learn the simplest, cleanest way to use PHP to split the results 'randomly' ?
Whats the right PHP to do this a simple as poss?
Be gentle with me LOL I'm genuinely TRYING to learn, and we all have to start somewhere !
|