[PLUG] "headers" & "footers" on Web pages

Phil Schultz phil at alcsoftware.com
Thu Apr 17 08:22:02 UTC 2003


This php line would work:
<?php include 'header.html'; ?>

The problem with this method is that you have to either change all of your
files from .html to .php, or setup the php parser to parse .html files.  If
this isn't an option I would suggest looking into SSI, it should work on a
properly configured Apache.

  - Phil

-----Original Message-----
From: plug-admin at lists.pdxlinux.org
[mailto:plug-admin at lists.pdxlinux.org]On Behalf Of Rich Shepard
Sent: Thursday, April 17, 2003 8:14 AM
To: plug at lists.pdxlinux.org
Subject: [PLUG] "headers" & "footers" on Web pages


  I have the same image & title and contact information on each of my 11 Web
pages. I would like to put the code for one in a "header" file and the other
in a "footer" file and do the equivalent of #include <...> on each page.
That makes updating much easier.

  After looking in my ORA book on html I come to you for knowledge. How can
I include separate files as headers and footers?

TIA,

Rich

Dr. Richard B. Shepard, President

                       Applied Ecosystem Services, Inc. (TM)
            2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) |
rshepard@appl-ecosys.com
                         http://www.appl-ecosys.com/


_______________________________________________
PLUG mailing list
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug





More information about the PLUG mailing list