Take the 2-minute tour ×  I am using an instance of mediawiki
and have added adsense to the php file of the skin. This places
the adsense banner on all pages but I would like to omit the
adsense banner from very specific pages.Primarily the "homepage"
(but keep adsense on all the other pages). My site is really big
so going in the other direction (adding adsense to specific
pages) would be a huge pain.  I was hoping there was a bit of
PHP code I could wrap the adsense code in that would allow me to
specify URLS for the adsense to ignore.  Thank you.
share|improve this question add comment  2 Answers  I'm not a
programmer so I have no idea what you just said.  However, This
article answered my question:   I just added the "Main Page"
(homepage) to the list of omitted pages in the list.
!strstr($_SERVER['REQUEST_URI'], "Main_Page") &&  THanks anyway.
share|improve this answer add comment  Make an array of the
pages to omit, then check the server environment variable
REQUEST_URI to see if it's in the array?