PHP and HTM

5 posts by 3 authors in: Forums > CMS Builder
Last Post: August 20, 2009   (RSS)

When I add the generated php header code before the doc type statement does this mean that I must save the page as PHP? Is it possible to save the page as HTM and still have it execute correctly. I know, dumb question, but I have no PHP experience and would like to understand options. Have been saving as PHP.

Re: [ThreeTree] PHP and HTM

By Dave - August 19, 2009

Hi ThreeTree,

Do you mean so your viewer files look like this: filename.htm?

If so, that's possible on many web servers by creating an .htaccess file with this line in it:
Addhandler application/x-httpd-php .htm .php

Which basically means, treat .htm files as if they were .php files. See this page in the docs for more info: http://www.interactivetools.com/docs/cmsbuilder/file_extensions.html

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] PHP and HTM

Thanks. The hosting company I use put their version of the necessary .htaccess on my client's site. I'll see how it works.

Re: [ThreeTree] PHP and HTM

By Dave - August 19, 2009

Great. Sounds like a helpful hosting company! :)

Let us know if you need anything else. :)
Dave Edis - Senior Developer
interactivetools.com