How To Serve Text-Link and Image Ads With PHP
Front Door Of The Old Cartdrone Site
As usual, PHP to the rescue! I found a simple way to rotate both text-link or image ads, and differently than previous methods I investigated. Now, I was able to stack a group of ads together, and then, with each refresh of the page, have a different ad in place. There's no need for even an ad server with this coding solution, since as ads grow in amount over time, they can be called via a PHP "include" statement so the size of the file doesn't interfere with your page load;
$num = Rand (1,3);
?> PHP Rotation Coding Sample
In the above example, you have a tabular setup for the first two ads, and then an example of an image link, which can have a text link substitute by removing the "img src" part. Try this PHP coding technique where you don't want to use JS, but you want to be able to circulate ads on the page without taking up space.
Mr Lee Davis is the owner/admin of Promodrone.com, an instant publishing site for news, articles, information, multimedia, and infographic submissions along with exposure to profitable opportunities associated with content creation. Are you a content creator in need of an original way to generate laser-targeted buyer visitor traffic to your product and affiliateship salespages? Info can be found at the salespage. As a Web Developer and Writer with thirty-plus years of experience within both disciplines, Mr. Davis is currently freelancing other MMO-based ideas as well as the attendant eCourse connected to his personal info-product.