Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Importing external HTML file



9:34 am on Sep 6, 2002 (gmt 0)

Inactive Member
Account Expired


Is it possible to link an external text file containing HTML into the body of other HTML files??
9:45 am on Sept 6, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
votes: 0

.shtml files can do this, you can do a server side include with this extention on a windows nt server at least.

There are some issues with this, some hosts forbid using it because of security - I dont know exactly what the issues are here.

10:07 am on Sept 6, 2002 (gmt 0)

New User

10+ Year Member

joined:Aug 31, 2002
votes: 0

As far as I know the SSI security issue relates only to EXECuting a script from the ssi call. It's unlikely that would cause a problem if done correctly but in theory it could. Otherwise ssi is ok.

You can do quite a bit with XSSI (extended server-side includes), such as using logic and query strings to determine what you want to include, manipulate templates based on time, browser detection and other stuff. Nice little webmaster tool to have.

SSI isn't default for most web servers so your hosting co. may have to "turn them on" if they don't work for you right away.

Try this url for more info:

Have fun...

5:43 pm on Sept 6, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
votes: 0

Are you interested in the content or the display? If the latter, you can simply use an IFRAME [htmlhelp.com].
5:56 pm on Sept 6, 2002 (gmt 0)


WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
votes: 0

Welcome to WebmasterWorld trevpope

What type of server are you on and do you have any scripting languages available? These two answers would give us the information to give you a better answer.

All servers/scripting languages have methods of including files within other files but it is dependant on what you have available.

Random Terrain

5:33 am on Sept 21, 2002 (gmt 0)

Inactive Member
Account Expired


I use Homestead which does not allow us to use anything beyond HTML and Java. No PHP, CGI, ASP, FBI, NBC, ABC, CBS, BR549, and so on. Is there a way to use an external HTML file (or piece of code) on multiple pages? I know there's something similar you can do with Javascript, but that doesn't help much if you want to include normal HTML. Here's a page about it:


In case you want to know, if we Homestead users want to add code to our WYSIWYG pages, we use "HTML snippets." There are two things I would like to do using those snippets.

1. Make one navigation HTML file that can be read from an HTML snippet on each page. That way I can change the navigation in the future and only have to do it one time, instead of over 125 times.

2. Place a text messsage in an external file that can be read from an HTML snippet on each page that will display any message such as the copyright date, or whatever message I might want to display on all pages. Much easier than doing one page at a time.

I know you can do something similir using frames, but many people hate frames, so I would like to find another way (that will also work with most browsers).


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members