Forum Moderators: coopster
Should I make it conditional on the URI? On the test server, the address is "example.dev", as opposed to "example.com" on the live server. Or is there a better way? Ideally, the local server would show a static graphic in the place of the usual ad code.
A secondary (related) query? On the live server, I want to avoid displaying AdSense on specific, pages. I can add a variable such as
$adv="no"; to the pages I want to exclude - is this a good method?
make an Ads class which has different functions for different ads services e.g adsense, MSadcentre, clicksor and your own ads scheme etc.
on testing server check the domain name and make decision which function you are going to call.
now lets do the second part with a little more improvisation.
add "$ad = no" check in your domain IF statement. So it checks domain AND value of $ad in a single IF. on the basis of this IF you can call different functions of your ads class.