PHP versus ASP comparison

February 16th, 2003

by Stephan Spencer

Price

PHP is cheaper to implement that ASP.

Capability

PHP gives us additional capability than if we were to code with ASP.

“Open Source”

We are strong proponents of the “Open Source” movement. Open source software is a collaborative effort amongst a worldwide community of volunteer programmers with a passion for technology. People of disparate backgrounds and experiences join together to solve problems in new ways, thus resulting in better software.

Open source software is free to use, copy, and modify, which makes it a great deal for our clients.

It is also highly flexible, because it allows us to extend the software and customize it for our clients’ requirements.

We don’t have to reinvent the wheel when we embark on a project for a client, as there is an amazingly extensive library of software written in PHP that’s free and available in source code form. Whenever possible, we repurpose our own extensive code library. But if we haven’t already built a similar web application before, we look for the best open source software to meet the functional requirements and pick up where that software left off. Adding such enhancements and customizations to the software’s source code wouldn’t be possible with proprietary closed-source software.

There are no requirements to purchase commercial licenses and pay continuously for upgrades. For example, to perform binary file uploads, retrieve a file via FTP or HTTP, encrypt passwords in MD5, or send email from a Web page require 3rd party commercial software packages in ASP. It’s all available for free in PHP.

PHP is platform-agnostic

It will run on Linux, Solaris, Windows, and other operating systems as well. With ASP you’re also forced down a path that is very costly and painful to extricate yourself from. For example, what if you wanted to switch web hosting providers to one that was more reliable and had better customer service but was Linux-based? ASP only runs reliably on Microsoft Windows-based web servers.

PHP is the most popular web programming language on the planet

It’s more popular than ASP, Cold Fusion, Perl, or any other web programming language.

All else being equal, PHP is faster than ASP

ASP supports multiple programming languages. This architecture is inherently slower and more memory intensive that PHP’s model because each ASP language compiler runs in its own process. So when ASP detects a Begin ASP tag () it will do a context switch back to the HTML parser.

PHP is secure

IIS Server is notorious for its security holes.

Coding in PHP is more efficient than in ASP

Typically the same functionality can be accomplished in less code with PHP than with ASP. This is because the HTTP GET and POST variables are created automatically by PHP as global variables, thus eliminating the step of extracting them from the ASP Request object. PHP’s HTTP header manipulation functions are easier to use than in ASP.

Want more?

More justifications can be found at http://php.weblogs.com/php_asp_7_reasons

Spread the word: delicious this:PHP versus ASP comparisondigg this:PHP versus ASP comparisonspurl this:PHP versus ASP comparisonfurl this:PHP versus ASP comparisonreddit this:PHP versus ASP comparisonAdd to Y!:PHP versus ASP comparison

6 Comments

  1. thanks guys . i was having this debate about asp outsmarting php and i think you have been a great help for me to stick to php

    by daniel — May 17, 2007 @ 5:31 am

  2. This isnt exactly correct now is it!

    What has IIS got to do with ASP?

    If we’re talking classic ASP which we must be considering the statements you’ve made then, ASP can run on Apache just as easily as IIS.

    Actually most of the statements made dont really make any point, other than to say one is open source and the other is not.

    And the statement that everything is PHP is free is just wrong. There are commercial companies making PHP things, they arent free! Nor are commercial ASP things.

    by Damien Jorgensen - Cardiff — May 19, 2007 @ 6:44 am

  3. A nice concise overall comparision of why PHP is better than Classic ASP!

    by graphic design nottingham — July 10, 2008 @ 6:27 am

  4. Thanks for the comparison. I was considering whether it was better to switch to asp as sites such as digg don’t seem to like php pages. I think I’ll stick with php.

    by limo hire — July 21, 2008 @ 12:21 pm

  5. I think it’s funny that you say PHP is more secure in one breath and then turn around and say it’s faster to code in because HTTP GET and PUT variables are automatically created as global variables.

    Open source is fine as long as you don’t mind inconsistent function naming (is it str_xyz() or strxyz()?) and functions that are implemented depending on the OS platform (i.e. you must be careful to write portable PHP).

    Oh yeah…and if you want to ADD any of those fun open source free features, don’t you have to recompile PHP on those open source platforms? :-) At least on a Windows platform you can just copy in the DLL files and tweak the php.ini file….

    by tim — August 25, 2008 @ 10:00 am

  6. As a new developer (and quite poor), the fact php is free to use and host meant I was able to learn the code and use it immediately. There also seems to be a bigger community providing tutorials etc, though I am biased I guess.

    by Tom — September 26, 2008 @ 1:26 pm

Leave a comment




Related Articles

Netconcepts » Articles

  1. Is Your Retail Site Navigation Spamming Google? Tuesday, 3 February 2009, 9:48 am
    If your retail website has deployed filter-based n. […]
  2. New tricks for Old Pueblo Sunday, 7 December 2008, 12:55 pm
    In this article on Multichannel Merchant, Netconce. […]
  3. SEO Toolbox Tips Wednesday, 13 August 2008, 8:03 am
    How current is your SEO Toolbox? Do you have all t. […]
  4. SEO Report Card: Littlepixiegifts.com.au Wednesday, 6 August 2008, 11:47 am
    A SEO review of this site and the Best Practices i. […]
  5. A Natural Disposition for Search Thursday, 31 July 2008, 11:29 am
    Is the use of rich media and new web technologies. […]

Case Studies

Netconcepts » Case Studies

  1. Case Study: Cabela’s.com Wednesday, 27 June 2007, 6:03 pm
    GravityStream empowers Cabela’s marketing. […]
  2. Case Study: HSN.com Monday, 25 June 2007, 10:51 am
    1200% increase in Google indexation Over 25% of u. […]
  3. Case Study: Northern Tool Wednesday, 20 June 2007, 12:00 am
    Six-figure sales in the first month 14,000 produc. […]
  4. Case Study: REI Friday, 15 June 2007, 9:01 pm
    200% gain from overall natural search sales More. […]
  5. Case Study: figleaves.com Monday, 11 June 2007, 10:28 pm
    40% increase in natural search traffic Page 1 Goo. […]

Testimonials

Immediate ROI

300% jumpstart in search traffic

E-commerce consultancy service vital to their success

As critical partner, we made it happen

Partnered with Netconcepts for SEO success

See all Testimonials →

Seminars

Netconcepts » Seminars

  1. Mega Session: SEO Vets Take All Comers Friday, 22 May 2009, 4:42 pm
    This PowerPoint-free panel is made up of veteran s. […]
  2. Duplicate Content Solutions & The Canonical Tag Thursday, 21 May 2009, 4:57 pm
    Duplicate content has long been a worry of the SEO. […]
  3. Internet Retailer Conference 2009 Monday, 27 April 2009, 2:11 pm
    Netconcepts will be exhibiting at the upcoming Int. […]
  4. SEO: From Soup to Nuts Thursday, 29 January 2009, 1:42 pm
    Whether you are a developer or a marketer, a seaso. […]
  5. SEO Status Report Metrics Wednesday, 14 January 2009, 10:38 am
    How are your SEO efforts going from a technical st. […]

Newsletter

Web marketing virtuoso Stephan Spencer, shares a wealth of emarketing experience and hard-hitting, practical advice in our monthly newsletter. It's full of valuable insights...You should subscribe.








Testimonials

Immediate ROI

300% jumpstart in search traffic

E-commerce consultancy service vital to their success

As critical partner, we made it happen

Partnered with Netconcepts for SEO success

See all Testimonials →

Latest posts
Latest comments


Contact Us

HEADQUARTERS
2820 Walton Commons West, Suite 123
Madison, WI 53718 USA
Phone: (608) 285-6600
Toll-free: 888 207-1109

NEW ZEALAND OFFICE
36 Anzac Rd., Browns Bay
Auckland, New Zealand
Phone: (+64) 9 476-4601
www.netconcepts.co.nz
infodesk@netconcepts.com

CHINA OFFICE
806 – Building 12, 93 Jian Guo Rd, Chao Yang
Beijing, China
Phone: (+86) 10 5820 7041
Fax: (+86) 10 5820 7042
www.netconcepts.cn
info@netconcepts.cn