title: php code in html not working even after enabling addhandler in .htaccess
body: <p>I have a little piece of php code in an html file but when i browse to the file it displays some part of the code instead of executing. below is the code</p>
  
  <pre><code>&lt;?php
  session_start();
  if (!$_SESSION["valid_user"])
    {
     // User not logged in, redirect to login page
      Header('Location: login.html?returnurl=' . urlencode($_SERVER['REQUEST_URI']));
     }
    echo "&lt;p&gt;&lt;a href=\"logout.html\"&gt;logout " . $_SESSION["valid_user"] . "&lt;/a&gt;&lt;/p&gt;";
  ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
  </code></pre>
  
  <p>here is the content of .htaccess file</p>
  
  <pre><code>`AddHandler application/x-httpd-php .html .htm`    
  </code></pre>
  
  <p>php version: 5.4.4
  server:  apache</p>
  
  <p>It would be really helpful if someone can help</p>