how to add my adsense html codes to my php website?

How can I add or remove banner html codes in a php website?

Comments

  • when you use the echo or print function, the browser treats it like html so all you have to do is echo the html

    ie

    echo ("google adsense code here");

  • php is server side programming language in which you can freely use HTML ad javascript codes. So simply instead of echo "" you just close php tags and out your adsense code in between. it will be easier for you if u r not php programmer.

    <?php

    this is start of u r php page

    .

    .

    some code

    ?> // add your adsense code here.<?php

Sign In or Register to comment.