Close

Results 1 to 4 of 4
  1. #1
    DF VIP Member mladen's Avatar
    Join Date
    Jan 2002
    Location
    Cheltenham
    Posts
    2,005
    Thanks
    4
    Thanked:        1
    Karma Level
    390

    Question html equivalent to php's include()?

    is there one?

    As I have a menu that that I want to put into a different file to reduce html code and to ease the time it takes to update the menu when a link is added. Cant use php as the clients server doesnt support it. :annoyed:
    Mladen

  2. #2
    DF VIP Member hxbro's Avatar
    Join Date
    Nov 2000
    Location
    Behind a wall
    Posts
    2,731
    Thanks
    4
    Thanked:        18
    Karma Level
    476

    Default Re: html equivalent to php's include()?

    You can use server side includes if the server has it enabled

    HTML Code:
    <!--#include virtual="/footer.html" -->
    http://httpd.apache.org/docs/howto/ssi.html

  3. #3
    DF VIP Member mladen's Avatar
    Join Date
    Jan 2002
    Location
    Cheltenham
    Posts
    2,005
    Thanks
    4
    Thanked:        1
    Karma Level
    390

    Default Re: html equivalent to php's include()?

    Quote Originally Posted by hxbro
    You can use server side includes if the server has it enabled

    HTML Code:
    <!--#include virtual="/footer.html" -->
    http://httpd.apache.org/docs/howto/ssi.html
    Nice post! BUT although the server supports apache it doesnt have the "include mod" installed :nowords:

    Any other ideas would be great
    Mladen

  4. #4
    DF VIP Member graham.edmon's Avatar
    Join Date
    May 2001
    Location
    Edinburgh
    Posts
    263
    Thanks
    0
    Thanked:        0
    Karma Level
    290

    Default Re: html equivalent to php's include()?

    some servers are configured to allow SSIs only if you give the file an .shtml extension...
    Languages: DotNet, C/C++, VB, PHP, Perl, COBOL (ewww), Pascal, ......
    Databases: SQLServer, Oracle, Ingres, Access, .......
    General geek....

Similar Threads

  1. SkyStar 1 PC card or equivalent
    By Gryphaea in forum Digital Satellite TV
    Replies: 7
    Last Post: 12th May 2003, 11:56 PM
  2. WTD: BT Router or equivalent Wanted
    By Yan666 in forum Buy, Sell and Trade
    Replies: 0
    Last Post: 17th March 2003, 09:02 PM
  3. (X)HTML standards
    By graham.edmon in forum Website Coding & Graphics
    Replies: 0
    Last Post: 1st February 2003, 02:20 AM
  4. Palm os + html editor
    By digidump in forum PC Software
    Replies: 0
    Last Post: 20th November 2002, 02:15 PM
  5. html question
    By p i m p in forum The Dog and Duck
    Replies: 27
    Last Post: 17th October 2002, 08:52 AM

Social Networking Bookmarks

Posting Permissions

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