|
-
Jul 6th, 2002, 09:42 PM
#1
Thread Starter
PowerPoster
Shtml??
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.
Last edited by Pc_Madness; Jul 6th, 2002 at 11:45 PM.
Don't Rate my posts.
-
Jul 6th, 2002, 10:04 PM
#2
Stuck in the 80s
Re: Shtml??
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.
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.
-
Jul 6th, 2002, 10:07 PM
#3
Stuck in the 80s
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)
-
Jul 6th, 2002, 10:08 PM
#4
Stuck in the 80s
Re: Shtml??
Originally posted by Pc_Madness
Is this a valid extension or just someone screwing around?
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.
-
Jul 6th, 2002, 10:36 PM
#5
Thread Starter
PowerPoster
But doesn't the browser have to be able to handle extensions as well?
-
Jul 6th, 2002, 11:18 PM
#6
Stuck in the 80s
Originally posted by Pc_Madness
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.
-
Jul 6th, 2002, 11:34 PM
#7
Thread Starter
PowerPoster
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.
-
Jul 6th, 2002, 11:37 PM
#8
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.
-
Jul 6th, 2002, 11:43 PM
#9
Thread Starter
PowerPoster
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.
But.... does the Browser know what do with a files with an .shtml extension? Its no longer a normal HTML file.
-
Jul 7th, 2002, 01:29 AM
#10
Hyperactive Member
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.
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
-=VB6 Enterprise Edition=-
-=VC++6Enterprise Edition=-
«¤E³m°O²™¤»
-
Jul 7th, 2002, 03:51 AM
#11
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:
Code:
content-type: text/html
and JPEGs
Code:
content-type: image/jpeg
etc.
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.
-
Jul 7th, 2002, 08:19 AM
#12
Fanatic Member
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.
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.
-
Jul 7th, 2002, 05:12 PM
#13
Hyperactive Member
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.
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.
-
Jul 7th, 2002, 05:17 PM
#14
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.
Thank you! and... Good night!! 
I'm right, you're wrong neener neener neener
-
Jul 7th, 2002, 05:23 PM
#15
Fanatic Member
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.
only for scripts, it will ignore jpg, gif, txt etc.
-
Jul 7th, 2002, 06:03 PM
#16
-
Jul 8th, 2002, 02:31 PM
#17
Black Cat
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.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 9th, 2002, 04:14 PM
#18
Stuck in the 80s
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
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.
-
Jul 9th, 2002, 11:42 PM
#19
PowerPoster
Maybe this will answer your question:
http://haztek.d2g.com/vbworld.jhxsosl
-
Jul 10th, 2002, 12:24 AM
#20
-
Jul 10th, 2002, 05:14 AM
#21
Thread Starter
PowerPoster
Well that just doesn't make sense at all.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|