Jump to content

Recommended Posts

Posted

Rename the pages to use a .php extension and use a PHP include:

<?php include("includes/footer.html"); ?>

 

Or rename the pages to use .shtml extention and use Server Side Includes:

<!--#include virtual="/includes/footer.html" -->

 

You could also add an apache handler to tell the server to handle standard .html as PHP or SSI, so you don't have to rename extensions.

Posted

No, you will have to edit all the pages one time to add the includes.

But a good text editor or search and replace tool can help.

 

But once you have made the changes it will be well worth it.

 

For those that are wondering why coleary wants to do this,

try the mini php tutorials from Total Choice hosting.

php mini tutorial by Jim Uni

and php mini part one tutorial by TCH-Jack

to see how well the includes work.

A quick change in the header can make the whole site look different.

Posted

Figured as much, was sort of afraid of that. The main reason I want to do this is for site-wide announcements (I have 3 different sub-domains that different groups of people use). Thanks for the quick replies. :unsure:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...