Forum Moderators: martinibuster

Message Too Old, No Replies

PHP and adsense

do they work

         

Rolozo

4:48 am on Sep 21, 2005 (gmt 0)

10+ Year Member



i haven't any idea whether Adsense in PHP pages will prove as efficient as with html or not ..?

Sobriquet

5:26 am on Sep 21, 2005 (gmt 0)

10+ Year Member



they work wonderfully - i love it that way!

a lot of work gets easier this way.

nubbin

6:35 am on Sep 21, 2005 (gmt 0)

10+ Year Member



Adsense works very well for me in pages generated via PHP. As long as google's adsense bot can crawl through your php pages it should work well for you as well. It needs to be able to crawl them to be able to serve the most relevant ads.

jstar

6:52 am on Sep 21, 2005 (gmt 0)

10+ Year Member



If you're real concerned, you can always map your .htaccess file to make PHP look like static HTML.

AddType application/x-httpd-php .html

tebrino

8:24 am on Sep 21, 2005 (gmt 0)

10+ Year Member



There is absolutely no difference since end result of both is plain HTML.

sven1977

12:52 pm on Sep 21, 2005 (gmt 0)

10+ Year Member



I do it the same way as jstar. Just call your files .html
and add .html to your php mime-types if you do not have direct access to your .htaccess file (I have a webhosting that doesn't allow me to edit this file directly so I have to go through their controll panel).
Then you can add php stuff to your files (<? ...?>). The great thing: You don't have to. A simple html page without php in it would of course still work.
Sven

AdSenseAdvisor

10:25 pm on Sep 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As everyone has already said, AdSense works on PHP sites. You might want to perform an internet search for 'AdSense PHP' if you'd like specific instructions for pasting the code on this type of site.

Cheers,

ASA