Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Server-Side Includes

Thread Tools

Re: Server-Side Includes

David Dorward
Posts: n/a
Matt Beckwith wrote:

> I have switched my web site to a server which supports server-side
> includes. I have a couple of questions:
> 1. Can I test out the includes on my PC


> the same way I test out my site on my PC?

Maybe, that depends on how you test your site.

> Or does the Include command only work on a server?

You need a server (or something else that will perform the includes for
you). You can get Apache (which runs over 50% of website from [its free]).

> 2. Since the extension has to be ".shtml" instead of ".html"

It doesn't, the server can be configured to parse any file for includes, or
(with the XBit hack) any file marked as executable.

> , does it work to have an Include inside of the home page?


> I mean, it's called index.html, so do I name it index.shtml?

If you rename it .shtml, and the server checks .shtml files for includes
then it will work.

> That is, if I rename it index.shtml, will this be the page that's brought
> up automatically when people go to my site?

If the server is configured to use index.shtml as a Directory Index file it

David Dorward
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WiFi Hotspot Directory now includes over 12,000 sites including Intl site! Riverwalk Mobile Wireless Networking 0 09-16-2004 02:45 PM
migrating asp to includes? Davݭ ١risson ASP .Net 4 12-30-2003 09:48 PM
Virtual Includes in ASP.NET Steve ASP .Net 1 11-19-2003 06:58 PM
WEBBOT includes and .ASPX Tor Nordahl ASP .Net 0 11-04-2003 09:49 PM
includes in ASP .NET Geraldine ASP .Net 1 10-29-2003 02:06 PM