Hi,
In this php tutorial you will learn how to build a random link rotator. Basically, we’ll build a php array with the links needed to rotate and then we’ll print to user the link randomly.
<?php $links = array("link 1", "link 2", "link 3"); $max = sizeof($links); $rand = rand(0, $max); print $links[$rand]; ?>
i want to know how to rotate my ads, i am using 2 different ad networks, i want to know hot to do that.
Well rent my php services or think! You get no freebies here!
Hi…
That’s very useful script. I’ve use it for rotate link to show different homepage every loaded. Very nice..
thanks
Very happy to hear, thank you for appreciating my great work!