title: php code inside html files not executed
body: <p>On my server, I am using nginx with php5-fpm (not Apache).  </p>
  
  <p>All the HTML, JavaScript and php code in my index.php file runs fine. But if I rename the file to index.html, the embedded php code doesn't execute. (All the HTML and JavaScript code continue to work fine.)</p>
  
  <p>Several answers recommend adding the line</p>
  
  <p><code>AddType application/x-httpd-php5 .html .htm</code>  </p>
  
  <p>to the <code>.htaccess</code> file, but after downloading, installing and configuring nginx and php5-fpm, there was no <code>.htaccess</code> file on my server. So I created one, pasted the above line and placed the file in the website's root directory along with <code>index.html</code>. I restarted nginx, but the php code still does not work. (To be absolutely sure, I simply changed the file extension from html to php and everything is perfect.)</p>
  
  <p>When I use firebug on the rendered page in my browser, the php tag and code don't appear to be there.</p>