Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    63
    Member #
    16740
    Hello,

    I have a PHP video sharing website. I recently incorporated a links page that just uses html. On the PHP section of the site I use this {include file="header.tpl"} when I want to link a certain file to lots of pages, like the header.

    How is this done with html? All I want to do is have 1 html file for the header that I can link to all other html pages so I donít have to put the header code into all the links pages.

    Cheers

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    html doesn't allow server-side includes.

    You can use shtml to accomplish that, but not all servers support it.

    An shtml include looks like this:

    <!--#Include File="header.tpl"-->

  4. #3
    Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    63
    Member #
    16740
    Thanks smoseley,I have an dedicated linux server so I should be OK using shtml.
    I'll give it a try.
    Cheers

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    I would still use PHP, but set-up .htaccess to process HTML and HTM files as PHP.

    http://www.google.com/search?hl=en&s...ss&btnG=Search



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:24 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com