+ Reply to Thread
Results 1 to 5 of 5

Thread: How do I put include files in html - what is the syntax please

  1. #1
    frankfriend is offline x10 Lieutenant frankfriend is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    406

    How do I put include files in html - what is the syntax please

    Can someone help please. What is the syntax in an html file to make an server side include file work?

    I know the include file needs to be a .shtml file with X10 hosting.

    If anyone who has used it could point me at their site so I can see the code in practice i would greatly appreciate it.
    Best regards Frankfriend

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: How do I put include files in html - what is the syntax please

    I would use php. It's more readily available everywhere.

    If you really want to use html; try google.

    Otherwise: use php. The syntax is:

    PHP Code:
    <?php

    include('somefile.html');

    ?>
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    akkudreamz's Avatar
    akkudreamz is offline x10 Sophmore akkudreamz is an unknown quantity at this point
    Join Date
    Jan 2009
    Location
    Jaipur, Rajasthan, India
    Posts
    183

    Re: How do I put include files in html - what is the syntax please

    Code:
    <!--#include virtual="path to file/include-file.html" -->
    Source:
    http://webdesign.about.com/od/ssi/a/aa052002a.htm


    But using a php include in a php source file will be better..
    Be safety conscious. 80% of people are caused by accidents.
    My Weblog

  4. #4
    frankfriend is offline x10 Lieutenant frankfriend is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    406

    Re: How do I put include files in html - what is the syntax please

    Thanks Neil & Akku,

    I'll follow up on these,
    Best regards Frankfriend

  5. #5
    khaledvic is offline x10Hosting Member khaledvic is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    5

    Re: How do I put include files in html - what is the syntax please

    Or u can use mime types on ur cpanel
    http://5-c.co.cc
    :nuts::nuts::nuts:

+ Reply to Thread

Similar Threads

  1. Parsing html files for php - .htaccess?
    By onyxmoron in forum Free Hosting
    Replies: 0
    Last Post: 01-06-2009, 03:01 AM
  2. Quota on size of html file on server 'cossacks'
    By tletter in forum Free Hosting
    Replies: 1
    Last Post: 12-08-2008, 07:59 PM
  3. BBCode para realizar tablas html con BBCode.
    By jesuli in forum Tutoriales
    Replies: 4
    Last Post: 11-27-2008, 03:27 PM
  4. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  5. What is XML!
    By wizeman in forum Tutorials
    Replies: 6
    Last Post: 08-27-2005, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers