G'day
I saw a web Page the other day with the extension *.shtml
Is this a valid extension or just someone screwing around?
Thanks in Advance.
Printable View
G'day
I saw a web Page the other day with the extension *.shtml
Is this a valid extension or just someone screwing around?
Thanks in Advance.
It's valid, but I can't remember what it stands for. It's the required extension to use SSI (Server Side Includes) in your documents.Quote:
Originally posted by Pc_Madness
G'day
I say a web Page the other day with the extension *.shtml
Is this a valid extension or just someone screwing around?
Thanks in Advance.
I have an SSI tutorial on my site, but it's down at the moment. You can look here if you want info: http://www.useforesite.com/tut_ssi.shtml
And I believe if's Server-Parsed HTML (shtml)
I hate to keep replying, but any extension is valid as long as it's defined on the server and it's setup to handle it.Quote:
Originally posted by Pc_Madness
Is this a valid extension or just someone screwing around?
But doesn't the browser have to be able to handle extensions as well?
No, I'm pretty sure it's all dependent on the server.Quote:
Originally posted by Pc_Madness
But doesn't the browser have to be able to handle extensions as well?
Well... you can't view VRML Pages without a plugin... so I'm guessing the browser has to have something in it to be able to handle that specific sort of file.
The browser knows how to display HTML. The server simply does some junk, because it sees the .shtml extension, and then feeds the browser standard HTML for it to display. On the other hand, VRML, for instance, is NOT standard HTML, and so you need a plugin to tell the browser what to do.
Z.
But.... does the Browser know what do with a files with an .shtml extension? Its no longer a normal HTML file.Quote:
Originally posted by Zaei
The browser knows how to display HTML. The server simply does some junk, because it sees the .shtml extension, and then feeds the browser standard HTML for it to display. On the other hand, VRML, for instance, is NOT standard HTML, and so you need a plugin to tell the browser what to do.
Z.
it shoudl be able to handle the extension, expecially if it's a newer browser like IE6Quote:
Originally posted by Pc_Madness
But.... does the Browser know what do with a files with an .shtml extension? Its no longer a normal HTML file.
but so far, i havent seen a plug in for file extensions like shtml, xml, dhtml, jhtml and so on.. so I'm guessing it doesnt really matter
-Emo
The browser knows what to do with the files as long as their MIME headers are defined properly by the server.
For example, when the browser requests the file, the server sends the file (after processing any server-side stuff) along with information about the file it is sending, so the browser knows what to do with it. For example, I think the header for HTML is:
and JPEGsCode:content-type: text/html
etc.Code:content-type: image/jpeg
and even if that doesn't work I believe the browser reads the first bit of the file to see if there is any HTML parsing it can interpret. I'm not so sure about that though.
The extention just tells the browser what to do. In the case of scripts (php,ssi,asp,perl, etc.) those are handled server side, and browser just looks at it like HTML.Quote:
Originally posted by Pc_Madness
But.... does the Browser know what do with a files with an .shtml extension? Its no longer a normal HTML file.
you meant the extension just tells the server how to parse it before sending the file to the browser right?Quote:
Originally posted by Gimlin
The extention just tells the browser what to do. In the case of scripts (php,ssi,asp,perl, etc.) those are handled server side, and browser just looks at it like HTML.
the mime type is what tells the browser what to do. if it is text/[something] then the browser knows to try and parse the html, xml, etc. but if it is a zip file or whatever, the browser brings up the save as dialogue becuase the browser can't interpret it.
Thank you! and... Good night!! :DQuote:
Originally posted by Kagey
you meant the extension just tells the server how to parse it before sending the file to the browser right?
the mime type is what tells the browser what to do. if it is text/[something] then the browser knows to try and parse the html, xml, etc. but if it is a zip file or whatever, the browser brings up the save as dialogue becuase the browser can't interpret it.
I'm right, you're wrong neener neener neener :p
only for scripts, it will ignore jpg, gif, txt etc.Quote:
Originally posted by Kagey
you meant the extension just tells the server how to parse it before sending the file to the browser right?
the mime type is what tells the browser what to do. if it is text/[something] then the browser knows to try and parse the html, xml, etc. but if it is a zip file or whatever, the browser brings up the save as dialogue becuase the browser can't interpret it.
point :o
There's actually another way for a browser to guess at the file's purpose besides MIME type or File Extension (which is a Windows thing that shouldn't be that significant) - it's a HTTP header I can't remember - one of the security exploits for IE in the past year or so involved incorrect interpreting of this.
shtml was around way before 6, probably around 4. And it would have nothing to do with it. It's what the server sends the browser.Quote:
Originally posted by Emo
it shoudl be able to handle the extension, expecially if it's a newer browser like IE6
but so far, i havent seen a plug in for file extensions like shtml, xml, dhtml, jhtml and so on.. so I'm guessing it doesnt really matter
-Emo
Maybe this will answer your question:
http://haztek.d2g.com/vbworld.jhxsosl
Good call =).
Z.
Well that just doesn't make sense at all.Quote:
Originally posted by MidgetsBro
Maybe this will answer your question:
http://haztek.d2g.com/vbworld.jhxsosl