Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: .htm .php .shtml .vm etc, what do they mean?

  1. #1
    Join Date
    Dec 2007
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default .htm .php .shtml .vm etc, what do they mean?

    I am really curious about this, actually.

    What do they mean? And how to you use those weird ones like .vm or .asp ?

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    For a stranger these file extensions may look alien but for a person who know some of the technologies can identify the type of the files by looking at their extension.

    If you consider file extension .htm or .html a person who knows Hyper Text Markup Language (HTML) can understand that the file is a web page which can be viewed using a web browser.

    If you consider .php and .asp both of them are server-side tools used in web development. ASP is the product from Microsoft and PHP which is an open source tool. So a developer can identify which technology used in a site just by looking at their file extensions.

    VM is a file extension associated with Geoworks Virtual Memory files

    Mostly standard tools tries to use a matching and more identifiable name as its file extensions.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The "weird ones" are rare because they serve a less common purpose.

    The ending of any file determines it's type. This is not an actual determination of use or content but just a name. If you call a file by the wrong type it is still the same data and can still be read as such, but many applications, web servers, and even users will not treat it like that only because of expectation.

    This ending is typically three letters because of old standards of 8.3 (8 character name . 3 character extension, which is why you'll see .ext a lot as a generic extension in examples), but now there are some that are 4 and a few that are 2 (though these might have existed then-- I'm not sure). The 4 character extensions may also have 3 character aliases, which creates some overlap such as .htm and .html which are exactly the same.

    .htm[l] = hypertext markup [language]
    This is for any general sort of webpage which can contain html, javascript and css, plus embed media and a couple other things, but through the html code, not that language in the source.

    .php is hypertext pre-processor (reversed the letters for some unknown reason). It is a server programming language that allows interaction with databases, the server, etc, and outputs pure html-- a .htm page renamed .php will function identically except that it will also parse and php code first [into html, that is, if the server has a php parser installed].

    .asp is the microsoft brand version of php-- php is open source, and more widely supported by this community.

    .shtml is either secure, super, or server-side html-- I don't know, or really care. You'd use that for adding special code to your html like doing something on the server, etc. You'd know if you'd need to use it, anyway.

    I don't know what .vm is-- it sounds vaguely familiar, but I've never used it or wanted to use it.

    As for how you can use one of the weird ones, well, you'd have to properly use it for it's purpose, and you can't just randomly any extension as that dictates what file then what to do with it. You could use some sort of complex rewriting the URL on your server to give another page, but that's not worth it and would be confusing.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    now there are some that are 4 and a few that are 2 (though these might have existed then-- I'm not sure).
    The twos might have, but the fours didn't, or weren't very common -- the reason for the 8.3 "standard" (and all the cruft left over from that, like .htm) is that DOS didn't support any filenames that didn't fit into 8.3. UNIX supported longer filenames, though, so it could be that larger extensions were used there. In *nix today, extensions are a lot more flexible: .a, .o, .so, .txt, .conf, and .config are all fairly common, and extensions for text files are considered unnecessary and thus arbitrary, leading to README.install, &c.
    Last edited by Twey; 02-01-2008 at 11:46 AM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    My phrasing was vague-- I was just referring to the two character extensions. 4 were indeed too long.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    .htm - hyper teenage monsters
    .php - popular holding patterns
    .shtml - 'by gosh!' Mel
    .vm - very maddening

    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by djr33 View Post
    .php is hypertext pre-processor (reversed the letters for some unknown reason).
    Actually, it stands for PHP Hypertext Pre-Processor. The first letter is the acronym (known as a recursive acronym). Why they named PHP that, I don't know. I guess HP was taken (Hewlett Packard), .
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  8. #8
    Join Date
    Dec 2007
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    .htm - hyper teenage monsters
    .php - popular holding patterns
    .shtml - 'by gosh!' Mel
    .vm - very maddening


    Thanks for the responses!

  9. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Actually, it stands for PHP Hypertext Pre-Processor.
    Really? Ew. That's much worse. I assumed it was just some sort of failed translation.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    All kidding aside, IMHO - PHP should stand for:

    Preprocessed Hypertext Protocol

    However, I will bow to its creators and/or keepers, as to what they envision it standing for.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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