How do you embed footer links into every webpage? So that I can update one file and it fixes the footer on every webpage?
I know how to do it by using PHP files but I don't want to use that. I don't want every page to be xxxx.php
| SitePoint Sponsor |

How do you embed footer links into every webpage? So that I can update one file and it fixes the footer on every webpage?
I know how to do it by using PHP files but I don't want to use that. I don't want every page to be xxxx.php

The method you want is called server-side includes, there's only two ways to achieve it... either you use a server-side language (PHP, ASP, ColdFusion, JSP, etc) or you use shtml (yes you would need to rename the file extension unless you can change the MIME types for your server).
http://en.wikipedia.org/wiki/Server_Side_Includes
http://www.sitepoint.com/forums/show....php?p=4407517



Why do you not want your pages ending with a php extension? Most folks don't even notice or understand the difference between the different extensions.
Use what you know and understand. If you know PHP, then you know using it will save you time and eliminate headaches in the future.
Each day is a learning experience.

If you don't want to change the extension names because you are updating all the pages on your site then you can add entries into your .htaccess file to tell the server to parse your .html or .htm files for either SSI or PHP.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">


A PHP include is the best way to go. And as Stephen says, you can leave your pages with a .html extension by modifying the .htaccess file. In case it's of use, I recently posted a simple How-To on this.
Bookmarks