OK i want to be able to show different ads on my website when ever anyone comes to the site eg every time the pages is re loaded and i want to put in a php lnclude file how i do this. also the ads if click go on to a site they are talking about lol cheers
You could create an individual file for each ad like ad1.php, ad2.php ad3.php etc. then include them using the rand() function like: <?php $ad = 'ad' .rand(1,5). '.php'; include($ad); ?> PHP:
Best way? No.. but it depends what you need / want exactly. Want any sort of tracking to see which ads people are clicking on? A backend with easy management? Theres plenty of options, the most popular free ad script is Openads which is pretty robust.
There are loads of ways of doing this. Have a look at the solution provided by http://www.openads.org Brew
i dont think open ads dose what i want it to do i want people to pay for a the ad banners. And a scripts has a list of the banners and then changes every time the pages is re loaded and plus i cant work out how you get the ads to show on my website any other ideas