That was one thing that used to puzzle me when I got my first web hosting account because I'd read forum posts where people said that php scripts only worked on a php enabled host, in pages ending with the .php extension - except my scripts always worked fine in my .html pages without any intervention on my part. Anyway, when I started looking into .htaccess, I realised that my web host already provided this line in my .htaccess file;
Code:
AddType application/x-httpd-php .html .htm
That's when I realised what this line did - it was parsing PHP on .html/.htm pages. It was pretty convenient at the time, but as Dan already said, it makes the server work harder so those old pages are a little slower than newer ones ending .php
Bookmarks