Jump to content


- - - - -

Php + Html - Can I Mix And Match


  • Please log in to reply
1 reply to this topic

#1 Kevin

Kevin

    Adsense Guru

  • Members
  • PipPipPipPip
  • 138 posts

Posted 13 March 2006 - 12:50 PM

Hi guys

I'm drawing up a new site. I'm looking at a template taken from an old php template which I bought sometime back but as I've mentioned in other posts I'm not especially literate in these fields. (http://www.babies-worldwide.com)

What I would like to do would be to use the 'includes' folder which came with the above template (it seems a good way of placing adsense ads.) it includes the following php files google_bottom: google_middle: google_top: referals: vars.php. It beats having to place the ad manually!

Now for the however! However I don't know if I can mix and match. I want to keep the files I have in html format (it's just a preference) so say I have my site with index.html; various folders like contacts; competitions; advice; all with html files will the file from the includes folder still work, i.e. will they place the ads where I want them to go?

I don't have to work with html if necessary I would consider moving back to php - but I don't like using things I can't understand.

Maybe it would just be as handy going down the old fashion route and placing the add one at a time.

#2 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 14 March 2006 - 05:06 PM

hi kevin..i broke my arm so am typing with one hand

you need to set up your server so that it will look for php in your html pages...this is possible i believe by editing your .htaccess file. note that it may slow down the serving of pages slightly but it won't be that noticeable.

alternatively u can call the files "shtml" and then it is possible to call scripts as needed with a line like this:

<!--#include virtual="/forums/latest_posts.php"-->




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users