1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Plz help me if there is any professional in PHP - ADSENSE

Discussion in 'Google' started by strgraphics, Jun 29, 2009.

  1. #1
    Dear friends,

    My Question is..?

    If site having 500 html pages, with adsense ads on it
    if the adsense if disabled the ads will not appear on that pages, and they show as page cannot find.. like that because google will not display the ads,

    Hear what i am doing is.

    1st i create the ads.php file and i put the adsense script on that and save it and close.

    Now in all 500 html pages i use require('ads.php'); where i want to display the ads, then ads are displaying normally it ok no problem, but the impressions are going to the every 500 html pages that user visits or only ads.php...

    this is my question,

    i think my conversation is clear to you friends plz help me,
     
    strgraphics, Jun 29, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    When you do php require browser cant see that you are including a file so on all pages
     
    Bohra, Jun 29, 2009 IP
  3. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    thanks for reply, frnd but, actually the ads.php will execute for 1st page, and now it require for suppose for 10th page then the ads.php is already executed it may be in buffer........, then the impressions are totallly zero am i correct if i am wrong plz explain
     
    strgraphics, Jun 29, 2009 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    its not like that see when you use php require then that part of the code you require automatically becomes part of the page it is required it.. adsense wont even know that your ads code is in the ads.php file

    Hope that clears your doubt
     
    Bohra, Jun 29, 2009 IP
  5. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Ya frnd, thanks frnd thanks for your awesome answer now only i cleared from my side, one of the php professional said almost like you, i think frnd r u php professional....or..?
     
    strgraphics, Jun 29, 2009 IP
    merlinseo likes this.
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    Hmm yes i know php in a good advanced way.. But this is something basic
     
    Bohra, Jun 29, 2009 IP
  7. merlinseo

    merlinseo Well-Known Member

    Messages:
    1,686
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    130
    #7
    Ok so what i understand is ads.php even though called in any of 500 pages , once executed on browser it will be then part of that html pages

    Thanks both of you. You dont know you have solved my very important query about PHP + HTML

    Thanks , Repped u both
     
    merlinseo, Jun 30, 2009 IP
  8. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #8
    oooh, Mr merlinseo ur's query is cleard..? thats nice,
     
    strgraphics, Jun 30, 2009 IP