View Full Version : .htm .php .shtml .vm etc, what do they mean?
Briggs
02-01-2008, 07:49 AM
I am really curious about this, actually.
What do they mean? And how to you use those weird ones like .vm or .asp ?
codeexploiter
02-01-2008, 08:22 AM
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.
djr33
02-01-2008, 08:23 AM
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.
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.
djr33
02-01-2008, 09:26 PM
My phrasing was vague-- I was just referring to the two character extensions. 4 were indeed too long.
jscheuer1
02-01-2008, 10:07 PM
.htm - hyper teenage monsters
.php - popular holding patterns
.shtml - 'by gosh!' Mel
.vm - very maddening
;)
.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), :p.
Briggs
02-02-2008, 12:40 AM
.htm - hyper teenage monsters
.php - popular holding patterns
.shtml - 'by gosh!' Mel
.vm - very maddening
;)
:p
Thanks for the responses!
djr33
02-02-2008, 02:34 AM
Actually, it stands for PHP Hypertext Pre-Processor.Really? Ew. That's much worse. I assumed it was just some sort of failed translation.
jscheuer1
02-02-2008, 05:14 AM
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.
Why? It's a language, not a protocol.
.htm - hyper teenage monsters
.php - popular holding patterns
.shtml - 'by gosh!' Mel
.vm - very maddeningHeh :)
Why they named PHP that, I don't know.It stood for Personal Home Page originally, when it was used to run one guy's "about me" website as a frontend to a load of Perl. The new acronym is a trifle forced, which aptly reflects the state of the language as having been thrust into a rôle it was never intended to handle.
BLiZZaRD
02-02-2008, 04:49 PM
Just my $.02...
Although .htm and .html are structurally the same and code the same and do everything the same, they are different. I only know of one difference though.
HTML was the standard even in the 8.3 days, however MicroSoft took it upon themselves to try and take over the internet (surprise?) and used the .doc for translated so a server could show the content (pictures as well.. never before heard of in a BBS system!) which is where we get the <pre> tag from nowadays.
To help conform to "standards" and allow easy manipulation of server processing to show their pages as much as possible, MS dropped the L so .html would conform to the 8.3 standard.
Yay MS!
It stood for Personal Home Page originally, when it was used to run one guy's "about me" website as a frontend to a load of Perl. The new acronym is a trifle forced, which aptly reflects the state of the language as having been thrust into a rôle it was never intended to handle.
Hmm. Interesting bit of information. Thanks Twey. You too, Blizzard. That's interesting stuff.
Really? Ew. That's much worse. I assumed it was just some sort of failed translation.
I can see that. The recursive acronym never made sense to me. In effect, it's adding a random letter to the start of the acronym. Why on earth would you do that?
While we're on the file extension subject, what is .cmf?
djr33
02-03-2008, 12:02 AM
It's some sort of server side scripting, seemingly fairly complex. I only know that because it's used for my university's website for the secure settings and email.
Yeah, I saw it on my college's website as well. That's what led to the question. I figured it was server side, but I don't know what language. I suppose I'll google it and see what insight it has in the matter. :)
BLiZZaRD
02-03-2008, 10:03 AM
Just more FYI.. I found this site (http://filext.com/) a year or so ago, filext.com has an extensive database, and good info, it not only tells you what the ext is for, but which applications use it, links to where to get said apps, and a lot more. I haven't been able to stump it yet. Good Stuff.
boxxertrumps
02-03-2008, 07:04 PM
Recursive acronyms pop up alot... "Wine Is Not (an) Emulator", "GNU's Not Unix", etc...
This reminded SC of something that passes for humor among computer scientists, the recursive acronym. Your host would guess that the most well-known such acronym is GNU, which expands to "GNU's Not UNIX", which could in turn expand to: "GNU's Not UNIX Not UNIX", "GNU's Not UNIX Not UNIX Not UNIX", and so forth. Or perhaps it should be "GNU's Not UNIX's Not UNIX", the "'s" string not being deleted on subsequent expansions.
Source (http://semanticcompositions.typepad.com/index/2004/06/recursive_acron.html)
While we're on the file extension subject, what is .cmf?Don't know about .cmf (in this context), but .cfm is a ColdFusion module.
jscheuer1
02-04-2008, 12:50 PM
Content Management Framework?
Tutsi
02-08-2008, 12:44 PM
Content Management Framework?
yup http://en.wikipedia.org/wiki/Content_Management_Framework
Thanks jscheuer1 and Tutsi. A lot of them seem to be written in PHP, but would those still have the same extension? I would think it would still be PHP.
jscheuer1
02-10-2008, 07:39 PM
A lot of CMS's (content management systems) use PHP as their language of choice, or are built upon a proprietary language that uses a similar syntax and conventions to PHP. Others use asp or jasp, etc.
What usually distinguishes the PHP lookalikes from 'mere PHP' is that they usually have a lot of front end in the form of proprietary design programs, and/or templates with a database already integrated.
In other words, one could design one's on CMS using PHP, asp or whatever you like plus a database program, but there are many out there where much of the work has already been done.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.