Html Code to "include"

Discussion in 'HTML & Website Design' started by josechukkiri, Sep 16, 2011.

  1. #1
    I have uploaded a html file to my site directory. I need a small 'code' that enable the html file to open in the index page. Can I get help.
     
    josechukkiri, Sep 16, 2011 IP
  2. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #2
    What do you mean, can you explain it more clear?
     
    karthimx, Sep 16, 2011 IP
  3. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #3
    If you mean to actuall call your html file by the index page, you may still need to rename your index.html to index.php and then use
    <?php include 'path_to/your_other_file.html'; ?>
    Code (markup):
    If you're willing to embed one page into another, then easiest way is to use iframes.
     
    Clive, Sep 16, 2011 IP
  4. Rising_Star

    Rising_Star Active Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #4
    use frames..
     
    Rising_Star, Sep 16, 2011 IP