hostorials.com

Different File Extensions for Web Pages

Topic: Web Hosting Related Guides | Print This Article Print This Article | Email This Article Email This Article | 82 Views
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

What is with all of those different web pages? .htm, .html, .asp, .php, .cgi, .pl, .aspx?

Surf around the web for a while and you will notice that some of the web pages that you view have different file extensions. For example, this web page is titled web-page-extensions.htm. It could have been titled web-page-extensions.html though. So what is different between all of these extensions? Is a .asp better or worse than a .cgi extension? Or is everyone just being creative?

When your internet browser requests a web page from a web host it examines the file extension. If the extension is hyper text mark up language (.htm or .html) then it is rendered in your browser. If the extension is something else then, depending on what the extension is, the server software does something to the page and then sends you the page. What the server software does depends on what is written in the web page. And frequently the web pages are running programming scripts or mini-computer programs which are processing data before or after you arrive.

For example, if you have ever been to a web page which displays the IP address of where you are (an IP address is a numerical address of your computer on the internet), chances are the web page is a .php extension. Why? Because using the PHP language it is very easy to display this. To see an example try this . What happens when you request the page with the .php extension is that the server software runs a computer script (a PHP language script in this case) and before the web page is displayed in your browser, it adds the results of the computer script.
So the .php extension allows a web page to interact dynamically with each person visiting the site. Thus, each time someone visits the IP Address .php page they will see something different because the IP address of their computer is different from yours.

Some of the different extensions you will see are as follows:

.php (Hypertext Preprocessor Lanugage: Scripting language in the web page itself)

.asp (Active Server Pages: Another scripting language, found mainly on Microsoft Servers)

.aspx (.net technology: Microsoft’s latest scripting ability and more, will be found on Microsoft Servers running the .net technology)

.cgi (Common Gateway Interface: Calls a computer program for caluculations or processing, computer program can be a wide variety of languages)

.pl (Perl Extension: Calls a Perl Script for processing)

So every time you see a web page with a different extension other than .htm or .html you know more is going on.

  Contributed By: e3Servers


Most Viewed Articles & Guides
Web Hosting & Domain Name Glossary - 3,562 Views
Securing Your Web Presence (Part I) - 567 Views
About - 555 Views
Skins for Cpanel & Ensim - 538 Views
Submit - 529 Views
Web Developers can be successful Web Hosting resellers - 526 Views
Bandwidth and Data Transfer - 520 Views
Take a Load Off - 511 Views
Contact us - 484 Views
What is Colocation Hosting? - 477 Views

Leave a Reply


connections Hosting & domain Pixel showcase Search web hosting companies by location Domain name and IP whois tools Pay Per Click - PPC webhosting directory Affordable Domain names registration web hosting & domain KnowledgeBase

Hosting & domain industry newsletter Webmaster search engine & tool bar for IE web hosting Surveys, Polls & Research Web hosting & Domains names Marketplace Dropped (ing) domain names search engine Popular paid web directory connections

CopyRight © 2006-07 | WordPress | Policies | Comments (RSS)
|
Proudly Hosted By:
Hostorials Lives On:
YPHOST