Forum Moderators: martinibuster
for example create a page called ads.php & place adesense code there and use <?php include("ads.php"); ?> for all your pages so if you need to change or remove it you just have to edit or delete ads.php
Its important to understand that PHP generates a final page of HTML (and css and javascript...) My pages are split amongst a collection of files which are included and functions and objects called to finally generate smooth HTML.
Adsense TOS doesn't comment in any way on any of this - they are concerned with the end result - the HTML that is served to the visitor.
you add this <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
in your head tag of the page.
This just doesn't make sense for a file to be included. Your metatags should be in the head of your HTML document. Adsense code belongs in the body. Would be an interesting experiment though, but I guess that will be a topic in the search forum.
you add this <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
in your head tag of the page. or in robots.txt
An included snippet to go in the body as an adsense block won't have a head section, and will never be visited (ideally) to use robots.txt
Rather than asking, actually try this - I think you will have an 'Aha!' moment :)