In almost all cases, if a page contains no PHP code, it can have either a .php or a .htm extension. If a page does contain even one line of actual PHP code, it must have a .php extension.
To be perfectly honest though, anyone with a dedicated server can edit their Apache httpd configuration to allow any extension to be an alias for any other extension. For example, you can say that .htm and .phtml are both aliases for .php, and therefore all 3 can run PHP code. Doing this would take a system administrator / linux techie type person to make the appropriate change.
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
If you add the following line to your .htaccess file then files ending .html or .phtml will be treated the same as those ending .php
AddHandler server-parsed .html .phtml
felgall
Junior Poster in Training
50 posts since Aug 2004
Reputation Points: 13
Solved Threads: 1
You can do that, but you have to tell the server to exicute that file (since it cannot be registered with a file type) I don't remember the code for this. You could also use mod_rewrite to remove the etentions off the files as well
Ragnarok
Junior Poster in Training
94 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
This programmer is saying that I can change it to .htm & it won't harm anything b/c there is little to no php on the site.
Is he a logo programmer? An HTML programmer? People really abuse the heck out of that title. In all honestly, any decent programmer will tell you that there will be a change in your web pages even if you have the smallest amount of PHP code on your page.
Other than that, I would say pretty much the same thing everyone else said with extra mayo.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18