+ Reply to Thread
Results 1 to 5 of 5

Thread: include html from another file?

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    include html from another file?

    Howto? I want to include gamelist.html on index.html. phpBB uses <!-- INCLUDE overall_header.html --> but that is a comment but it works for phpBB but not on my page.

  2. #2
    supajason's Avatar
    supajason is offline x10 Lieutenant supajason is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    England........:-)
    Posts
    288

    Re: include html from another file?

    you would need to change your website to PHP and then use the include function. I would take a guess that is how PHPBB did it.
    supajason was here

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: include html from another file?

    PhpBB has it like this way:

    HTML Code:
    <!-- INCLUDE overall_header.html -->
    some content bla bla bla
    <!-- INCLUDE overall_footer.html -->
    And is written in an html file. But I tested an SSI thing, That would probably only work on the x10 server right?

  4. #4
    ryoko126's Avatar
    ryoko126 is offline x10 Sophmore ryoko126 is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    207

    Re: include html from another file?

    Do you mean a php Include Statement? If so, you have to put a code like this where you want the content to show up. That is, ASSUMING I'm understanding correctly.

    <?php
    include($_SERVER['DOCUMENT_ROOT']."/gamelist.php");
    ?>

    Be sure on the gamelist page you only put the php or html of the content itself, not the background, css or anything like that.
    This is my Xenogears novel site. Check it out if you like!
    http://xenonovel.com

    Ryoko126: Squeeing over 35 year old rpg guys since 2001. XD

  5. #5
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: include html from another file?

    I renamed the index to .shtml and used an SSI command now. Dreamweaver 8 + shtml = bad idea. The design thing mess up. How do I fix it? I managed including the file with SSI anyway. Eh WTH I use php instead...
    Last edited by galaxyAbstractor; 11-17-2007 at 01:35 PM.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 10-10-2007, 07:53 AM
  2. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  3. What is XML!
    By wizeman in forum Tutorials
    Replies: 6
    Last Post: 08-27-2005, 12:05 PM
  4. Include php into Html
    By Tyler in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 07-13-2005, 08:50 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