Results 1 to 21 of 21

Thread: Shtml??

  1. #1

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    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.

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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)
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    But doesn't the browser have to be able to handle extensions as well?
    Don't Rate my posts.

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    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.
    Don't Rate my posts.

  8. #8
    Zaei
    Guest
    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.

  9. #9

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    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.
    Don't Rate my posts.

  10. #10
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    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²™¤»

  11. #11
    ricmitch_uk
    Guest
    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.

  12. #12
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    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.

  13. #13
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    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.

  14. #14
    ricmitch_uk
    Guest
    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

  15. #15
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    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.

  16. #16
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    point

  17. #17
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  18. #18
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  19. #19
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Maybe this will answer your question:

    http://haztek.d2g.com/vbworld.jhxsosl
    <removed by admin>

  20. #20
    Zaei
    Guest
    Good call =).

    Z.

  21. #21

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Originally posted by MidgetsBro
    Maybe this will answer your question:

    http://haztek.d2g.com/vbworld.jhxsosl
    Well that just doesn't make sense at all.
    Don't Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width