Adsense & php

This is a discussion on Adsense & php within the PHP Language forums, part of the PHP Programming Forums category; When I started using Worpress (php weblog) for my Windowseat.nl site my Adsense earnings basicly disappeared. I noticed that ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-12-2004
Andre
 
Posts: n/a
Default Adsense & php

When I started using Worpress (php weblog) for my Windowseat.nl site my
Adsense earnings basicly disappeared. I noticed that my home page (the first
page) has no valid ads on them. From a search on the web I understand the
issue of not having enough text in the index.php file where the adsense
script is but... when I click a category then the ads are fine. Same
index.php...So I understand the problem but have not found a reasonable
solution.
What I do now is go around the issue by having a index.html as an entrance
to the site. Not a nice solution but it works... Did anybody solve this
problem in a better way?

André
http://www.windowseat.nl




Reply With Quote
  #2 (permalink)  
Old 12-14-2004
Norman Peelman
 
Posts: n/a
Default Re: Adsense & php

"Andre" <andre@kabelaar.nl> wrote in message
news:41bc47b6$0$218$58c7af7e@news.kabelfoon.nl...
> When I started using Worpress (php weblog) for my Windowseat.nl site my
> Adsense earnings basicly disappeared. I noticed that my home page (the

first
> page) has no valid ads on them. From a search on the web I understand the
> issue of not having enough text in the index.php file where the adsense
> script is but... when I click a category then the ads are fine. Same
> index.php...So I understand the problem but have not found a reasonable
> solution.
> What I do now is go around the issue by having a index.html as an entrance
> to the site. Not a nice solution but it works... Did anybody solve this
> problem in a better way?
>
> André
> http://www.windowseat.nl
>
>
>


Try including the php source within an HTML page like so:

html file... (come out of HTML immediately)

<?PHP
....your code
// now back to html here
?>
<html>
etc.
</html>

and call it index.html. As long as your server is set up to process all html
files through PHP first it will work.

Norm
--
Avatar hosting at www.easyavatar.com


Reply With Quote
  #3 (permalink)  
Old 12-29-2004
James Cridland
 
Posts: n/a
Default Re: Adsense & php

I've had a lot of AdSense ads appear in both pages ending .php and
pages ending .html - and, indeed, pages ending with something else
proprietary to my site.
I'd suspect something else is to blame - not the .php ending.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0