To use php code on a page with an extension other than .php, add the following line to .htaccess file.
AddType application/x-httpd-php .html .indi .htm
This tells the server to check for php code and execute it in files with extensions .html, .indi or .htm.