Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

lucinpub

HTML includes

This topic is 5764 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

while reading on the MSDN library, I came across this article. The jist ( or is it gist ) of the article is that you can include html files in other html files like this <!--#include virtual="footer.html"--> i was just wondering, that is asp or MS specific, isnt it? Is there a similar, non microsoft way of doing this?

Share this post


Link to post
Share on other sites
Advertisement
Servers supposrting SSI use the .shtml extension on their files so the server knows to parse it. HTML files themselves can''t include. ASP borrowed this idea from SSI.

- Jay

"I have head-explody!!!" - NNY

Get Tranced!

Share this post


Link to post
Share on other sites
so, when I write a shtml page, i use the same syntax as in the example I provided earlier, or is there some other syntax for non MS ssi

Share this post


Link to post
Share on other sites
I''m almost absolutely sure that the syntax is the same. In ASP, I''d use the following syntax to include a file:

<!--#include file="footer.html"-->

I believe this works for ssi as well.

paulus_maximus: Not sure what you mean. In ASP, yes, but I don''t think SSI has much functionality. On the other hand, I haven''t even looked as SSI in about 4 years so maybe it advanced (?)

I know ASP very well but my knowledge of SSI is limited though I don''t think there''s really much to it at all.

- Jay

"I have head-explody!!!" - NNY

Get Tranced!

Share this post


Link to post
Share on other sites
Look here: Apache Tutorial: Introduction to Server Side Includes

It's pretty much as non-MS you can get. And I think these apache folks comply to standard.

EDIT:
quote:
Original post by daerid
SSI just includes the contents of the file. It doesn't process that file or anything. Just includes it.
That is not true. You can include CGI's, and with tweaking also other SSI documents and also PHP etc.


[edited by - CWizard on September 12, 2002 4:50:13 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!