title: Creating a footer file using php
body: <p>I'm trying to create a php file with my footer details. I want to include this into the necessary pages. The following is my footer.php</p>
  
  <p><strong><em>footer.php</em></strong></p>
  
  <pre><code>&lt;?php
      echo "&lt;footer class="footer"&gt;
                &lt;div class="container"&gt;
                    &lt;p class="text-muted"&gt;&lt;a href="contactus.html"&gt;Contact Us&lt;/a&gt;&lt;/p&gt;
                    &lt;p class="text-muted"&gt; Copyright &amp;copy; &lt;span id="yearfooter"&gt; &lt;/span&gt;. All rights reserved.&lt;/p&gt;
  &lt;/div&gt;
            &lt;/footer&gt;";
  ?&gt;
  </code></pre>
  
  <p>This is the line I include into my html file to include this footer.php</p>
  
  <pre><code>&lt;?php include 'footer.php'; ?&gt;
  </code></pre>
  
  <p>But when uploaded to my website, it is not showing the footer file. This is the very first time I'm trying out PHP. I'm not sure if there is something else I'm supposed to do or where I'm going wrong. Any help is much appreciated!</p>
  
  <p><strong><em>UPDATE</em></strong> </p>
  
  <p>I still cant get this to work. I've also added a .htaccess file and it still doesnt help.</p>
  
  <p><strong><em>.htaccess</em></strong></p>
  
  <pre><code>AddType application/x-httpd-php .html
  </code></pre>
  
  <p><strong><em>Update</em></strong></p>
  
  <p>I've managed to get this working. There was some config issues in the server side. Thanks!</p>