title: How to get a PHP file to run with an ".html" extension?
body: <p>I have to execute PHP codes in a HTML file, but my server not doing it. I added a handler <code>AddHandler application/x-httpd-php .html .htm</code> but still it's not responding to the code.</p>
  
  <p>The code I tried to execute </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;  
  &lt;html&gt;  
  &lt;body&gt;  
  &lt;?php  
  $url=basename($_SERVER['REQUEST_URI']);  
  ?&gt;  
  &lt;p&gt;the file name is &lt;?php echo $url; ?&gt;&lt;/p&gt; 
   &lt;/body&gt; &lt;/html&gt;
  </code></pre>
  
  <p>and the result is "the file name is"</p>
  
  <p><img src="https://i.stack.imgur.com/wUVPN.png" alt="First image"></p>
  
  <p>it should be "the file name is test.html"</p>
  
  <p><img src="https://i.stack.imgur.com/BR2Pz.png" alt="Second image"></p>
  
  <p>I checked the server software version via <code>phpinfo()</code> it say this "Apache Phusion_Passenger/4.0.10 mod_bwlimited/1.4 mod_fcgid/2.3.9". now what ?</p>
  
  <p>I don't even know that it is. Please tell me what server my web host is using and how can I run PHP codes in a HTML file?</p>