SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jun 2004
    Location
    India
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Add header, footer, left and right portions seperately in a web page.

    Hi friends,
    I was wondering if it is possible to modify some file and all the web pages of your site are modified for header, footer, left and the right portion of your web site. Suppose you change the copy right notice in your footer area and the notice is changed for the rest of the site. If some one knows the technique, P.P.P. help me.Thanks in advance.
    phpfellow,

  2. #2
    Put your best practices away. The New Guy's Avatar
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    2,087
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    server side includes.
    "A nerd who gets contacts
    and a trendy hair cut is still a nerd"

    - Stephen Colbert on Apple Users

  3. #3
    SitePoint Evangelist Deano's Avatar
    Join Date
    Mar 2003
    Location
    Derbyshire, UK
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <?php include  ("footer.php")  ; >
    place the above text anywhere you wish for the footer to appear on your website

    make sure the page your including the footer.php into is saved as, for example :

    main.php

    this goes for all pages you are wanting to include the footer.php

    Regards
    Deano
    Last edited by Deano; Jun 14, 2004 at 08:19.

  4. #4
    SitePoint Member
    Join Date
    Jun 2004
    Location
    India
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I configured my apache server as
    AddHandler server-parsed .shtml
    AddType text/html shtml
    And change the file extension .shtm and put a comment tag like below
    <!-- #include file="mailform1.txt" -->
    and put a file with file name mailform1.txt in the same directory, but the file is not shown. Please help.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •