Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3

Thread: Includes

  1. #1
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default Includes

    Hello there.
    I know you can use PHP includes.
    But I've also seen HTML includes.
    Can anyone tell/show me how to use HTML includes?

    I really like includes

    +REP in advance.

  2. #2
    Join Date
    Dec 2007
    Location
    Manchester
    Posts
    2,236
    Tokens
    118
    Habbo
    hamheyelliot

    Latest Awards:

    Default

    From About.com:

    An include is a section of HTML that isn't a full HTML document by itself. Instead, it is a portion of another page that can be included in complete Web pages using programming. Unfortunately, this is not something that is supported by HTML, so you need to have some type of program or script to add your include files into your Web pages.
    Most include files are items that are repeated on multiple pages of a Web site without changing, like:

    • navigation
    • copyright information
    • contact notices


    The Server Side Include code for HTML includes;
    Code:
    <!--#include virtual="path to file/include-file.html" -->
    PHP for HTML includes;
    PHP Code:
    <?php
    require($DOCUMENT_ROOT "path to file/include-file.html");
    ?>
    ASP for HTML includes;
    Code:
    <!--#include file="path to file/include-file.html"-->

  3. #3
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    But I've seen HTML includes on other sites.
    Ex: www.blocket.se - The blue links on the left side.
    It's Swedish, but I hope you'll see.

    Also;
    #include
    Du kan även inkludera en HTML-fil, dvs fil med tillägget .html. Men var noga med att inte ha i denna fil element som bara får förekomma en gång per dokument, såsom elementet HTML, hela huvuddelen och elementet BODY. Finns det (t ex) två BODY i ett dokument kommer dokumentet att vara ogiltigt.

    virtual
    Anger en virtuell sökväg till ett dokument som finns på servern

    <!--#include virtual="/~server/virtual_dokument.txt"-->

    file
    Anger en sökväg till det aktuella biblioteket

    <!--#include file="dokument.txt"-->
    It's swedish, but they say it works?

Posting Permissions

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