HTML vs. PHP vs. ASP

You may notice when you are browsing websites, that some of the pages end with html, php, or asp, but what exactly does this mean? To the person browsing the site, it doesn’t mean anything really. The difference between these types of files is how the web server handles giving your browser the information.

HTML is the simplest form. These are files store on the server and when you request a page ending with html extension, it gives your browser an exact copy of what is saved on the server. You could view the source of an HTML document and then save it to your machine and it would always look the same.

PHP and ASP work differently. These are files which have code the server understands, so when you request a php or asp page, the code is run and your browser is sent HTML code which you see. This is how interactive web pages work. The difference between the two is just the code language used. ASP is Microsoft’s format which is based off of Visual Basic and only works on Microsoft servers. PHP is an open source language which looks similar to Java and C and works on any server platform.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

Discuss This Article (Without Facebook)

Leave a Reply

PCMech Insider Cover Images - Subscribe To Get Your Copies!
Learn More
Every week, hundreds of tech enthusiasts, computer owners
and geeks read The Insider, the digital magazine of PCMech.

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: