Header Ads

Meaning of different website extensions : .htm , .html , .shtml , .asp , .pl , .cgi , .jsp. , php

Do you know why some Web pages end in htm, others end in html, others end in asp and so on? Why all the different extensions?

You can see some of the most common extensions on these URLs:
  • .htm.
  • .html

When the Web started, it ran almost exclusively on UNIX machines and all pages were Html which was the standard file extension. When people started using PCs running DOS or Windows as Web servers, however, the four letters in "html" were problematic. PCs followed an 8.3 naming convention that allowed only three letters in the extension. So the world made room for two standard extensions: html and htm

Htm and Html pages are static. The file is lifted off the server's disk and sent verbatim to the client.
  • .shtml :
Pages tagged with shtml reveal that "Server Side Includes" are being used on the server.. With SSI, a page can contain tags indicating that another file should be inserted in place of the tag in the existing page. So a page is lifted off the server's disk and the server makes all the substitutions indicated. Then it sends the final page to the client. This approach makes it very easy to change things like headers and footers on pages across an entire site.
  • .asp :
Active Server Pages (asp) is a Microsoft technology that allows even more flexibility. A Web page can contain Visual Basic code that the server executes when it lifts a page off the disk. This code can do just about anything -- read databases, run other programs, custom format pages based on the user's ID, etc. You have a great deal of flexibility. On the other hand, your Web pages now contain code that may have bugs in it, so it is possible for a page to "crash." With freedom comes responsibility...
  • .pl :
The pl extension stands for PERL, a scripting language. The page contains nothing but PERL script, and the script builds the page on the fly. The script can also do anything as in asp pages.
  • .cgi:
The Common Gateway Interface (CGI) is a standard protocol for interfacing external application software with an information server.Each time a request is received, the server analyzes what the request asks for, and returns the appropriate output.
  • .jsp
Jsp is one of the latest additions to the Java Enterprise suite of APIs. "Jsp" stands for "Java Server Pages" and is effectively Java's response to ASP. The code embedded in a page is Java rather than Visual Basic.
  • .php
"Php" used to stand for "Personal Home Page," but now it's really just "PHP," which is a scripting language that's mostly used with Linux.