shtml vs. html???? What's the diff????

rutchtkim

Golden Member
Aug 2, 2001
1,880
0
0
What does shtml do. I see some websites have .shtml instead of .html
What sorta stuff is it used for??? Dynamic pages??
 

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
.html is usually regular static HTML page that changes only when the webmaster edits it. .shtml is used for dynamic pages, where you can do something like this: "You are connected to this web site from <!--# echo var="REMOTE_HOST" -->." and the webserver will parse that. The user will then see "You are connected to this web site from xxxx-xxxx-blah.uu.net."
If you go to my web server and look at this page: http://www.gigacluster.net/uptime.shtml, you will see the server's uptime.

You could configure your webserver to just parse ALL pages, regardless of whether there's any dynamic content, and then you wouldn't have to bother with choosing either .html or .shtml, but it's a double-edged sword -- parsing a document takes up [valuable] CPU time and possibly RAM. That is why the server wants a special file extension for files it needs to parse.

Hope that helps.
 

Elledan

Banned
Jul 24, 2000
8,880
0
0
The extension means nothing. I could configure my webserver to serve all pages with .abc as extension as HTML pages, and parse all SSI tags in pages with .def as extension.

.shtml is the most common extension for HTML pages containing SSI tags.