网页htm, html, asp是什么意思
文章来源: 文章作者: 发布时间:2009-04-08 00:29 字体: [ ]  进入论坛
(单词翻译:双击或拖选)

上网已经成为我们生活的一部分。我们打开网页,会发现地址栏里都是以http开头的,结尾却各不相同,有htm,html,asp,pl,等等等等。这些都是网页的“扩展名”。那么它们都代表什么意思呢?下文就来告诉你。

You can see some of the most common extensions on these URLs:

http://www.howstuffworks.com/question-archive.htm - The question archive page (and nearly all other pages) at HowStuffWorks ends in htm.

http://www.adobe1.com/products/acrobat/readermain.html - The home page for Adobe Reader ends in html.

http://www.cbsnews.com/sections/home/main100.shtml - The home page for the CBS news in shtml.

http://www.microsoft.com/catalog/default.asp - Many pages on Microsoft's site end in asp.

http://www.altavista.pl/ - The home page for the AltaVista search engine ends in pl.

http://www.howstuffworks.com/cgi-bin/suggest.cgi - The code that processes suggestions at HowStuffWorks ends in cgi.

http://www.howstuffworks.com/survey-add.php - The HowStuffWorks daily survey results page ends in php.

When the Web started, it ran almost exclusively on UNIX machines and all pages were static. Html 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. It used to be that you could tell whether a Web site was running on UNIX or Windows by looking at the file extension, but now there is no distinction. HowStuffWorks runs off a UNIX server but uses "htm" as its extension -- it's the webmaster's choice.

Pages tagged with shtml reveal that "Server Side Includes(服务器端包含)" are being used on the server(服务器). Htm and Html pages are static. The file is lifted off the server's disk and sent verbatim to the client. 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.

Active Server Pages (asp动态伺服器网页) is a Microsoft technology that allows even more flexibility2. 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 format3 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 bugs4 in it, so it is possible for a page to "crash." With freedom comes responsibility...

(Note that is now becoming common to see jsp and php extensions as well. Jsp is one of the latest additions to the Java Enterprise suite5 of APIs. "Jsp" stands for "Java Server Pages" and is effectively Java's response to ASP. The code embedded6 in a page is Java rather than Visual Basic. "Php" used to stand for "Personal Home Page," but now it's really just "PHP (Hypertext Preprocessor, 一种在电脑上执行的脚本语言)," which is a scripting language that's mostly used with Linux.)

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.

The cgi extension also means that a page contains code executed by the server, but the type of code can be just about anything.



点击收听单词发音收听单词发音  

1 adobe 0K5yv     
n.泥砖,土坯,美国Adobe公司
参考例句:
  • They live in an adobe house.他们住在一间土坯屋里。
  • Adobe bricks must drived dried completely before are used.土坯砖块使用前一定要完全干燥。
2 flexibility vjPxb     
n.柔韧性,弹性,(光的)折射性,灵活性
参考例句:
  • Her great strength lies in her flexibility.她的优势在于她灵活变通。
  • The flexibility of a man's muscles will lessen as he becomes old.人老了肌肉的柔韧性将降低。
3 format giJxb     
n.设计,版式;[计算机]格式,DOS命令:格式化(磁盘),用于空盘或使用过的磁盘建立新空盘来存储数据;v.使格式化,设计,安排
参考例句:
  • Please format this floppy disc.请将这张软盘格式化。
  • The format of the figure is very tasteful.该图表的格式很雅致。
4 bugs e3255bae220613022d67e26d2e4fa689     
adj.疯狂的,发疯的n.窃听器( bug的名词复数 );病菌;虫子;[计算机](制作软件程序所产生的意料不到的)错误
参考例句:
  • All programs have bugs and need endless refinement. 所有的程序都有漏洞,都需要不断改进。 来自《简明英汉词典》
  • The sacks of rice were swarming with bugs. 一袋袋的米里长满了虫子。 来自《简明英汉词典》
5 suite MsMwB     
n.一套(家具);套房;随从人员
参考例句:
  • She has a suite of rooms in the hotel.她在那家旅馆有一套房间。
  • That is a nice suite of furniture.那套家具很不错。
6 embedded lt9ztS     
a.扎牢的
参考例句:
  • an operation to remove glass that was embedded in his leg 取出扎入他腿部玻璃的手术
  • He has embedded his name in the minds of millions of people. 他的名字铭刻在数百万人民心中。
TAG标签:
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片