How to add Adsense code to PHP file?

Discussion in 'PHP' started by bigu, Oct 11, 2012.

  1. #1
    Hi,

    I have this PHP code:

    
                    $block->title = t("My text");
    
    PHP:
    Now I want to replace "My text" above by Adsense code?

    How do I can?

    Thanks.
     
    Last edited: Oct 11, 2012
    bigu, Oct 11, 2012 IP
  2. Web Solutions

    Web Solutions Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    0
    #2
    Replace it with the code provided by AdSense and make sure all of the special characters are properly escaped (backslash).
     
    Web Solutions, Oct 11, 2012 IP