Quantcast

ASP vs. PHP

Get the WebProNews Newsletter:
[ Business]

When building web sites, ASP and PHP are very popular languages. Here’s my opinion on whether ASP or PHP is best.

Both ASP and PHP are languages used to build Dynamic Web sites that can interact with Databases and exchange information. ASP (Active Server Pages) is from Microsoft and is used with IIS (Internet Information Server) that runs on Microsoft Servers. PHP (PHP: Hypertext Preprocessor) is from Rasmus Lerdorf, who originally designed this parsing language which was later modified by different people. It runs on Unix and Linux servers and it also has an NT server version.

There are a lot of differences between ASP and PHP.

Cost

To run ASP programs one needs IIS installed on a Windows platform server, which is not free. PHP programs run on Linux, which is free. Even the connectivity of the database is expensive in the case of ASP as MS-SQL is a product of Microsoft that needs to be purchased. PHP generally uses MySQL, which is freely available.

Speed

If we compare the speed of ASP and PHP then PHP has an upper hand. PHP code runs faster than ASP. ASP is built on COM based architecture, which is an overhead for the server whereas PHP code runs in its own memory space.

Platform Compatibility

PHP programs can run on various platforms like Linux, Unix, Windows and Solaris whereas ASP is mainly associated with Windows platforms. However, ASP can run on a Linux platform with ASP-Apache installed on the server.

Additional Costs

Many of the tools used in PHP are free of cost and since PHP is open source a lot of code can be found in open source forums. PHP has inbuilt features like ftp, email from a web page or even encryption mechanisms but in ASP such features are not built in and some additional components are required. Therefore an additional cost is incurred for such components.

Base Language

PHP is based on C++ language and the syntax used in PHP is quite similar to C/C++. C/C++ is still considered the best programming language by many programmers and people who love this language would surely feel more comfortable with the syntax of PHP. ASP on the other hand has a more Visual Basic kind of syntax that again is closely related to only Microsoft products. So, it depends on a person-to-person which language he or she is comfortable

Database Connectivity

PHP, being extremely flexible, can connect to various databases, the most popular being MySQL. ASP mainly uses MS-SQL.

Conclusion

Both languages have their advantages specific to users. Some would argue that both the languages have their own importance and depending on the user’s requirements the language and the platform can be chosen. If we talk about developing a discussion board then ASP is equally capable but many feel the best discussion boards are developed in PHP. If a user is looking for some e-commerce application development then many would call ASP the ideal choice. This does not mean that PHP cannot provide e-commerce solutions, only that many people choose ASP.

From my perspective, PHP is an all around better choice than ASP.

Halstatt Pires is an Internet marketing consultant with http://www.marketingtitan.com – an Internet marketing firm in San Diego offering automated web site systems through http://www.businesscreatorpro.com.

ASP vs. PHP
Top Rated White Papers and Resources
  • Anonymous

    PHP does NOT stand for “Personal Home Pages” (see www.php.net)

    • David A. Utter

      I’ve fixed that in the article. Apologies for that getting through.

      • Mike McDonald

        No apology needed.  Rasmus Lerdorf, did in fact refer to PHP as "Personal Home Page Tools"  -or PHP Tools

        Suraski and Gutman’s Zend engine is, in fact a rewrite of Lerdorf’s parser.  The Zend PHP started at version 3. 

        So, while ‘preprocessed hypertext blah blah’ sounds cooler and more formidable, it’s not only possible but (I think) likely,  the acronym’s origin lies with Lerdorf’s original abbreviation.

        kthnxbye.

         

         

         

         

        • Guest

          Well….I have worked on ASP for more than 3 yrs and I feel ASP can do whats mentioned below :

          1. Connect to MySQL, MS Access, MS SQL Server 2000/2005, Oracle 9i (I have not tried connecting to DB2)

          2. Is pretty fast, if well balanced with stored procedures, can do a 10000×10000 rows database comparison in some 10 seconds.

          3. Can be widely used to work with Office Web Components to generate more than 40 types of charts

          4. Can be used for automatic emailing

          5. Reading / writing to Excel/text files is possible

          6. Can be used to write code for file upload to a folder (binary read)

          ASP is simple….it takes a while to start with but then you just do not write a website for enterprise wide business needs in days….it takes planning and thought processes….ofcourse one can buy time to be familiar with this technology.

          ASP.NET has many features inbuilt….validations etc have become a piece of cake…but then there are heavier and complex controls which take a lot of brains to use sometimes…ASP.NET more languages like C#, VB, C++, Python etc rather than VBS and JAVASCRIPT primarily in ASP.

          I have not used PHP so far since I could do wonders with ASP, but I guess it would have all the above features and better regular expressions handling techniques.

          It would be great  if some of you can throw some more light on PHP’s benefits and capabilities

          Thanks!

          • Guest

            1. Bot benefit, I suppose that PHP support more DBs.

            2. It’s not ASP feature but DB. And PHP support more DBs.

            5. I Think it’s not goot to use Platform-depeandent feature/data-format.

            6. It’s not thing that even need to talk about. If your language/env. does not aloow you to this… I haven’t words.

            Try to read language reference in standard PHP’s manual. If you know C/C++ you’ll take not much time to understand main rules and start to use PHP. Almost all you’ll need is in this manual+comments. Don’t think ASP is such simple.

    • Read a book

      PHP used to stand for Personal Home Page. It outgrew its original moniker so they updated it.

  • University Prof

    You really should check your facts b4 putting down the MS technologies. I get the impression that you really don’t understand how server-side programming works… or maybe it’s just windows environment, databases, and web servers that confuse you?

  • everyone

    This article is written quite horribly. I’m no english major, but this article was choppy and was of no help. It reads as if it was “auto translated” online and is really opinionated with no side taken in the opinion. Anyone could have found this info looking at wikipedia for 3 minutes.

    Here’s the article in under 100 words. This personal basically says:

    ASP’s code runs quicker. PHP and ASP run on different systems. ASP mostly on microsoft products ($$$) and PHP on free open source products. Both have good support forums. There is php. There is asp. Both is good. Both is bad.

    Come ON!!

    • GuestX

      Agreed!

      Especially Asp.NET is fast (compiled instead of interpreted) and versatile. It also uses a more sophisticated programming language (C#) as opposed to PHP (and also too many deprecated functions, inconsistent naming, and other weird stuff).

      Although I prefer Asp.NET, I have to say that PHP is fine as it is cheap (hosting, support, and so on).

  • Adam

    This article is extremely biased. ASP can connect to pretty much any kind of database, just like PHP. Please do research before writing again.

  • Not relevant

    A very good article. Now I finally now the difference. But I do not undersatnd why such pages as w3schools.com use asp..Microsoft seems to be the main enemy for such thing as “standard”

    • Who cares

      This is a terrible article. Badly written and makes absolutely nothing clear. Ignore.

      • spyderlove

        This article is not at all terrible… How can u make such a remark! Its so stupid of U!

      • Freedom

        That’s just a vague comment! Justify rather than throwing shit!

    • Guest

      I think w3schools is not a part of w3c.. anybody know who is w3schools?

  • Dan Walters

    I liked the above article.

    I found it brief and to the point.

    Being fairly competent in both ASP and PHP, I must admit that they both have their uses.

    I personally prefer PHP, there is something satisfying about developing a web application using open source software.

    And it’s free, I don’t feel like I’m contributing to another one of Mr Gates’ Private Jets! :)

    • me

      This article is BIASED and written by a a morron of consultant whose company is out of business.
      The debate whether to use PHP or ASP is a matter of preference. The fact that PHP is monolithic ported code, it would run slower on Windows. If Linux is fast, then PHP would run there fast.
      Truly, go with what you feel.

      The writer is the worst I’ve ever read and doesn’t know his stuff.
      IGNORE.

    • http://www.ameinteractive.com Mickey

      You should also check your facts, Bill Gates would not buy another private jet. He might cure AIDS in Africa, or give another 200 million to the United Negro College Fund, or any number of the charities he champions for. He is the most giving person on the planet, so much so that Warren Buffet gave him 20 billion dollars to distribute to his charities. People like you embrace open source and the like without ever trying the other side. Please educate yourself to make an intelligent argument next time.

      • Sky Lighting

        “You should also check your facts, Bill Gates would not buy another private jet.”

        You seem to know, yet don’t.

        Bill Gates didn’t give “a dime” for most of his career. It wasn’t until he was chastised for years about this that he changed his course. His reputation for giving to others is entirely new and may be a profit decision.

    • razer

      hmmm both have thier good and bad points … i certainly dont mind contributing to Bill Gates private jets… or more importantly the Bill & Melinda Gates Foundation, the largest transparently operated charitable foundation in the WORLD. 

  • http://www.pluginlab.com Dean

    I think asp is starting to be replaced by asp .net fast!

  • Bander HM

    I totally agree with you. I’ve experienced many problems with ASP. The major problem is that you have to pay , forever, to make consistent ASPs. PHP is my choice (not only because it’s free) but it’s portable. I share many scripts with Unix-based fanners!

  • Mok Seng Chai

    I came from JSP. To me, JSP, PHP & ASP, each is a headache. I justify:

    JSP: Java is slow. Every step, you wait. How frustrating! JSP unavoidably links to EJB. J2EE’s Release Notes say 128 MB of RAM could handle 1,000 EJBs. My computer has 128 MB of RAM. I used 1 EJB to handle 1 database with 1 table with 1 record. It bogged down the computer! JSP has Custom Tags, called ‘taglib’. By JSP 2.0, ‘taglib’ became extremely complex! In fact, not just JSP, I really think the entire J2SE 5 and Java EE 5, are going in the wrong direction! Sun seems enjoying meddling with minor, theoretical details, creating complexity that is totally unnecessary! (Browse through the API documentation and see for yourself.) That makes Java far from reality.

    PHP: The default coding style of PHP is to entangle PHP with HTML, and SQL. That makes the programs very unreadable. Someone came up with a Smarty framework to separate each. Sadly, Smarty has its own syntax, commands, etc, looking very different from PHP. PHP used to come with MySQL. If one is to switch to say PostgreSQL, he has to change all RDBMS-related commands. So someone else came up with PEAR DB. Sadly, PEAR DB looks entirely different from PHP. So yet someone else came up with a PHP coding standard, available at PHP’s website. ‘From now on, everybody follows this.’ Sadly, this standard again looks entirely different from PHP, Smarty and PEAR DB! You tell me HOW?

    ASP: I tried Visual C#. Microsoft is really the Big Boss in software industry! Visual C# is neat! Just look at a sample Visual C# program. How nice! Sadly, Microsoft’s products are chargeable. (The Visual Studio Express Edictions are free. One still has to pay for Windows, and the hardware.) For me, I don’t mind paying, for Microsoft’s quality assurance, and the peace of mind. The real problem with Microsoft’s products is that before you can catch a glimpse, they are phased out! Through the years, Visual Basic, Visual J++, OLE, ActiveX, COM etc, a long list, each was like that. Even its flagship product, Visual C++, with its big MFC, Microsoft Foundation Class, was phased out overnight. Microsoft has the resources to do this. As a developer, I cannot catch up.

    So PPP, which do I choose? I am a freelancer. I tell you a secret: for freelancers, now the PHP market is red-hot! So I choose PHP. LAMP, Linux, the OS, Apache, the web server, MySQL, the RDBMS server and PHP, the website, the entire suite, being Open Source, is FREE. Looking at 10 years from now, if I were to open up my company, a simple question: how am I to convince my customers a paid product from Microsoft can fight with a free product like LAMP? Money, that’s it. It’s an ugly world.

  • http://www.msg-gol.com msg-gol

    ASP is slow hard to learn week the only thing that keeps asp alive is Microsoft huge money
    and security Php is great my subjection is php Believe me you can master php in 1 week
    With php you can do all the things there is in dynamic web programming I

  • Mok Seng Chai

    Dear msg-gol,

    I thank you for your encouragement. Master PHP in 1 week? You are talking about basic, procedural programming: sequence, selection, iteration. Right?

    Just let MySQL come into scene. You have to design the database: draw entity-relationship diagrams, do normalization, keep watch of referential constraints etc. Ignore these and your database is logically wrong! I haven’t talk about SQL….

    PHP 5 is object-oriented. Basic concepts like encapsulation, inheritance and polymorphism will take months to figure out. Best practices like Smarty templating engine, PEAR DB library etc are highly sophisticated! PHP 6 will likely have a Zend framework, like Microsoft’s .NET and J2EE’s Struts, Spring etc. To me, such frameworks are always the programmer’s worst nightmare coming true!

    In working life, there is another major aspect — the domain. A company has to run a trade, like retail, manufacturing, health care, banking, insurance etc, of which a programmer needs intimate knowledge to write a piece of software that is meaningful. To me, it will take a decade (10 years) to become a (good) programmer!

    I thank Halstatt Pires for providing this web space. In order not to misuse it, I will post no futher comments. And I challenge all future commenters: Show us a code segment that YOU wrote!

    • http://www.msg-gol.com msg-gol

      wo who said 1 week
      god, not again
      sorry guys 1 week is a joke he is right i meant 1 year
      its been 1.5 year that i have been playing around php and I’m releasing my cms under GNU/GPL
      its name is msfire i will announce it when its done

  • ganesh

    tx  for ur opinion …. all guys said your own opinions.but its not good guidence for beginners to chose good language.so please give the ranks  to for both languages

  • chennai

    hiii

                  Write all topics in a more precise way.

  • http://www.moosicsmurf.co.nr/ GlynSimpson

    This is just my opinion, but in the time ive used PHP, i’ve found it to be very stable. I tried ASP, but i found it a little harder to get started, things were going wrong all the time. But im putting down asp. I’m just saying that PHP was easier to get started with.

    btw. WAMP server is perfect for the new PHP user, specially when on windows. i do recommened it.

  • Guest

    hi

  • Hey Stop!

    If you want to pay for something that is similar to it and free, then go spend your stupid money with MS Fuk Products. The fact here is FREE and it works well. Only stupid people like you stupid fuk spend something that is similar and free.

    Look around you and tell me how many people can afford $500 on something that works similar for free. Morrons!

    • http://php.net/ KING

      i totaly agree with you.

      Php is the best and you can easily find Free resources.

      • cchg

        yesi agree. paying for something which you could’ve gotten it for free is crazy.

  • http://www.tech555.com Vinayak

    Thanks for this wonderful article.. am running 2 sites currently, one in PHP and other in ASP.. both on windows server.. Will soon have both of them in PHP and would finally move to a linux server !!

    the only reason I personally find PHP better is that its free and uses MySQL db which I find to be the besttt ..

  • Guest

    I have been developing web application using PHP and ASP. I find PHP to be alot more flexible and controlable than ASP. In the last two years I started to concentrate more and more on PHP and only used C# for desktop applications.

  • http://www.oh-why.cn ohwhy

    the problem around the world

    when and wher is end!

  • http://www.afghari.com Mohammad Afghari

    with php5 you can do any web based application easily in object oriented manner. php5 load web pages very faster than asp . use php5 and good by aspx .

  • enzo

    yup PHP is better than ASP,

     

    i  used to have a project in PHP/MYSQL.

  • http://traffic4adsense.blogspot.com Mitoman

    Google is not using asp or php, yet its running faster than both, does anyone know what langauge they are using?

    • Guest

      google website uses python!

      • Just Guest

         You can’t say python exactly. Google uses their own (unique) python-based with the special file system.

  • http://nemesia.org/ ernie Carver

    "ASP on the other hand has a more Visual Basic kind of syntax that again is closely related to only Microsoft products."

    What on earth are you talking about? You’re not limited to visual basic when doing ASP.net development, you can use c#, j#, and whatever else. There’s even a 3rd party python add on if you like python. Point is you can find something you’re okay with. It is with php that you’re limited to just one style.

    Your argument here fails completely. Especially since you praise Php for having a c/c++ styled syntax and ignore the fact ASP gives you c#.

    • Guest

      indeed..you are limited to one syntax…the best and professional C/C++ syntax which became a standard for any hi skilled programmer. I’m a developer of VB on mssql and have good results with then but when the issue is web, I still prefer PHP, not only because its powerful, cross-plataform, cross-database and ease to learn, but I mainly believe that on internet there’s no place for proprietary languages. The HTML survived will last many and many years because its a open standard. We cant say the same for the late VBscript for example…

  • Guest

    You guys need to give hard facts so that people can decide on their own based on their own needs!  and for that iddiot that keeps using the F word, get a clue, before I slap you with a hot bag of urine.

    • Guest

      So is the bag hot, or the urine?

    • Guest

      Don’t mess with your incontinence-bag you idiot; if you break it, you will leak into your pants.  You are supposed to take it easy in old age and not lose temper.

  • http://www.rankbetterseo.com/seo-web-design.php seo web design

    I am not a programmer buy my programmer does prefer PHP over ASP. I have worked with both sites and find PHP to be better from an SEO standpoint.

  • Impressed

    Well….I have worked on ASP for more than 3 yrs and I feel ASP can do whats mentioned below :

    1. Connect to MySQL, MS Access, MS SQL Server 2000/2005, Oracle 9i (I have not tried connecting to DB2)

    2. Is pretty fast, if well balanced with stored procedures, can do a 10000×10000 rows database comparison in some 10 seconds.

    3. Can be widely used to work with Office Web Components to generate more than 40 types of charts

    4. Can be used for automatic emailing

    5. Reading / writing to Excel/text files is possible

    6. Can be used to write code for file upload to a folder (binary read)

    ASP is simple….it takes a while to start with but then you just do not write a website for enterprise wide business needs in days….it takes planning and thought processes….ofcourse one can buy time to be familiar with this technology.

    ASP.NET has many features inbuilt….validations etc have become a piece of cake…but then there are heavier and complex controls which take a lot of brains to use sometimes…ASP.NET more languages like C#, VB, C++, Python etc rather than VBS and JAVASCRIPT primarily in ASP.

    I have not used PHP so far since I could do wonders with ASP, but I guess it would have all the above features and better regular expressions handling techniques.

    It would be great  if some of you can throw some more light on PHP’s benefits and capabilities

    Thanks!

     

  • Arindam

    Well….I have worked on ASP for more than 3 yrs and I feel ASP can do whats mentioned below :

    1. Connect to MySQL, MS Access, MS SQL Server 2000/2005, Oracle 9i (I have not tried connecting to DB2)

    2. Is pretty fast, if well balanced with stored procedures, can do a 10000×10000 rows database comparison in some 10 seconds.

    3. Can be widely used to work with Office Web Components to generate more than 40 types of charts

    4. Can be used for automatic emailing

    5. Reading / writing to Excel/text files is possible

    6. Can be used to write code for file upload to a folder (binary read)

    ASP is simple….it takes a while to start with but then you just do not write a website for enterprise wide business needs in days….it takes planning and thought processes….ofcourse one can buy time to be familiar with this technology.

    ASP.NET has many features inbuilt….validations etc have become a piece of cake…but then there are heavier and complex controls which take a lot of brains to use sometimes…ASP.NET more languages like C#, VB, C++, Python etc rather than VBS and JAVASCRIPT primarily in ASP.

    I have not used PHP so far since I could do wonders with ASP, but I guess it would have all the above features and better regular expressions handling techniques.

    It would be great  if some of you can throw some more light on PHP’s benefits and capabilities

    Thanks!

  • http://www.seowebdesignfirm.com/ seo syracuse

    Great outline of the two languages. I have been looking for this for my programmers for a while now.

    • http://madridofertas.blogspot.com/ baratos

      Php 5 rocks.

  • http://www.fiancee-visa.net Fiancee

    Great information, been looking for a comparison like this.

  • http://www.encyclopedia.com/doc/1E1-AckroydP.html Peter Ackroyd

    well written outline. Keep them coming.

  • kn

    So which one is better? People in microsoft…   please tell us!

  • http://www.mgnlaw.com chicago personal injury

    We just redesigned our chicago law site and this was some great info while we were doing it.

  • http://www.swankigifts.com/article/entertainment entertainment gossip

    it was very helpful with some of our new sites we just built. Thanks again for the great article.

  • http://www.articleblip.com/article/politics political news

    so which is better? Or does it depend on what you will be using it for?

  • Cartman

    I see this comparison of over 3 years old.  PHP isn’t even on the same planet as ASP.net as far as being a development tool is concerned.  Anyone reading this in 2008 take notice.  All the arguments about ASP and the "cost" of using .net is now irrelevant.

    asp.net can use mysql just as well or better than php, the development tools and debugging environment is all free in the express versions (C# express is a heck of a lot of programming tool for zero price.)  MS SQL now available in an express (= free) version as well and the .net development framework has always been free.  I wish people would stop beating out the cost excuse for bashing MS.  Their stuff is just as free and easy to get as any of the millions of versions of spagetti code php opensource mess.

    MSSQL server using stored procedures outguns MySql on a 300000 record query by a factor of 6 to 1.

    get a clue.  people use opensource because it’s free not good.  MS products are stomping them in the free market now too. AND as of 2008 MySql isn’t free anymore.  Sun owns it and they’re not giving it away.

  • Raven

    I agree with the latest comment regarding ppl always nailing MS when it comes to cost, however when it comes to  the difference between ASP and PHP one should clearly differentiate between ASP (the first version of Active Server Pages which the author discusses) and ASP.NET. The former, in my opinion, is less superior to PHP but the latter ASP.NET is a different story. This beast has matured enough to bring to the developer a Windows-like programming environmet that ships with ready to use components for every-day web solutions. And also, since ASP.NET runs on top of the .NET framework, this makes it (theoratically) cross-platform. The only incovenience of choosing ASP.NET is sadly its cost.

    So, in few words, ASP.NET offers a superior platform then PHP when it comes to ease of development but PHP still nails it when it comes to pricing.

    Personnaly, I prefer PHP but I’ve developed in ASP.NET and it’s good.

    The question of which one is the better will remain ALWAYS a personal opinion.

     

  • http://www.newbaseballapparel.com baseball apparel

    Great info.  helped out alot with some things we were trying to decide on.

  • http://www.xivos.com Melbourne Web Dev

    This article is a bit dated now, as ASP is obsolete, long live ASP.NET.

    PHP has also grown in leaps in bounds. But…

    The fact remains, sucky code is sucky code no matter what the platform, language or  framework. A tool is only a tool, and it is really the person behind that tool which will make or break your applicaiton.

  • http://www.answerblip.com/articles/business/business-questions business questions

    Thanks for the great information. I enjoyed the read about the progamming languages

  • http://www.moviesblip.com/films/dvd-movie-reviews DVD Movie Reviews

    Great article. It was very helpful in determining the direction to go with our new movie site.

  • Guest

    Even though it is a personal choice, as they basically do the same thing, PHP is much better for several reasons.  PHP works better in Linux than ASP.NET, and Linux servers usually are less error prone.  PHP is more flexible than ASP.NET.  Unless you have a large website, PHP takes up much less space than ASP.NET.  PHP is free and open source, ASP.NET is not either.  As with anything Microsoft, you have to spend money to just start being able to design with ASP.NET.  On average, PHP is much faster than ASP.NET on sites I have been on.  On the contrary to what another poster said, MySQL is still free(or if its not, no web host I use is charging extra for it or even saying that it is an included cost). 

    Pretty much, they are both the same.  For me, PHP is just easier and quicker.  The differences in them are so small that they would barely be noticeable anyways.  if you can afford to waste money with Microsoft, then try out ASP.NET.  Otherwise, I suggest learning PHP(in my opinion, PHP is much easier to just pick up and start using than ASP.NET). 

    • Bucket

      Last post sounds like joke to me. ASP.NET is much, much easier to understand and use then php. Comparison php to asp.net is like assembler to C++. First one is simple, fast and flexible but you never use it if you know higher level language. In ASP you have Visual Rapid Application Development IDE. You can develop your application using great set of Visual Web Developer Studio Express, MS Sql Studio Express and IIS, all for free (Well, of course you need Windows which is not free). In PHP even simple task as debugging is not trivial. If you want to use MySql in ASP.Net project – no problem, just download proper connector from MySql site. You can also use Postgresql, Oracle whatever you want. Microsoft’s documentation of libraries in MSDN is also much better. In PHP you have separate documentation to php, separate to PEAR libraries, seprate to used framework and seperate to your developement tool which if it’s not Zend Studio is always in beta state. If you plan to make some intranet services and integrate your application with Active Directory php it not even an option. My conclusion is that if you need everything for free and you work for free pick php, you want to make money on your project pick ASP.

  • http://www.pearllovematch.com Guest

    Just wonder what will be a better script to use for runni9ng a Dating site.

    Any helpfull Idea??
    THanks
    M.Baranowski

    • nonecares

      It’s a nice insight hearing all the opinions, and the pros and cons for either side.

      I reckon if your working in a corporate environment, it is in your best interests to use ASP.NET. If you are working privately, at home for community or peronsal reasons, it’s probably in your best interest to use PHP.

      I say this with an understanding in that if you use ASP.NET in a business environment, you stand to make more money through mark up on costs incurred in purchasing all the software.

      I would also say that, in a personal environment, you stand to save a lot of money by using PHP.

      With regard to languages and syntax used, if you have programmed previously using many of Microsofts Visual Studio based products and not much else before, then yes ASP.NET will be an easier route.

      If however, you have programmed at a lower level (by lower I mean more in depth, perhaps at college or uni) then perhaps the more C orientated side of PHP is a better choice for you.

      As said before both have their pros and cons.

  • http://mintarticles.com MintArticles.com

    Personally i use PHP as my primary web development programming language. I am pleased with it and i like it is available on any hosting. Still, i will try to learn Java, just for curiosity ;)

  • sorok

    For me PHP is the best it has a lot of free third parties php framework (cakephp, codeigniter…), php CMS (Drupal, Joomla…), if anyone preferred to build php with wizard please check the codecharge but you have to spend $500….

  • Guest

    If They both have their advantages, why didn’t you name ANY for ASP?

  • http://www.answeraddict.com/faq/fitness-questions fitness questions

    Great info about the two languages

  • ken easson

    Comparing php and asp (or even asp.net) is rather impossible. Why? just because one can achieve similar results (a webpage, server administration, email) from them both, doesn’t mean they are equal. That’s like saying a steak sandwich is better than an orange, because the steak sandwich filled me up more, if you ate another orange until the price was the same, you would find the orange equally filling – might take longer, but it would still do the same job.
    ASP is considerably different than php, growing up with Basic on an Apple II, and even basic on Mac, i had a background that allowed me to explore ASP (for free) however, as i started developing websites (initially with coldfusion/Access) i soon discovered that my clients wanted a less expensive platform, i switched to php, as i could build myself an enterprise server from an old 486 i had collecting dust.
    I continued to learn ASP and moved into the .net realm, but at that time development tools were expensive, while possible to program ASP in Textpad (inexpensive syntax highlighting notepad) i found that it was much easier to debug and develop in Perl using my own dedicated server.
    when I graduated from college and needed a job, companies hiring new grads were not looking for someone that was going to cost them a lot for rollout. And Php was the language everyone was looking for. (LAMP developers) So i gave up on ASP and started learning PHP so i could get a job.
    While i revisit ASP from time to time, and know a lot of univerties focus on the ASP and Visual frameworks (due to bigger budgets, educational pricing) university graduates tend to graduate into larger firms requiring more comprehensive OS’s and Technical resources. The ASP.Net Framework not only produces their website, it also reports sales directly into their Excel spreadsheets, and their accounting department access the MS SQL server for it’s data. Big corporation money spending $ on technology to make even bigger money is how big business works, and ASP.Net is the tool for that job. It was a very wise decision for MS to develop a more familiar to C programmers a C like language and make a framework that was interoperable (.Net). While it’s nothing new, corporations like the idea of having one name, no matter how much slandered, to manage all their technological solutions.
    It takes experience and know-how to develop a PHP workstation, and inevitably along the way one faces hurdles and frustrations with the openness of PHP and making it work. If you have the time and patience, PHP is an excelent choice, but trying to get an extra 10 minutes out of a big shot manager to figure out why your IDE isn’t working, doesn’t always fly. So ASP has a very important place. PHP on the other hand is far more accessible, but at a steeper installation and management cost (time, not always $$).
    While running a small multi server ISP, it was a full time job trying to keep everything up-to-date, and secure. A responsible ISP keeps track of numerous emails noting security alerts, and updating source code, not only of PHP installation, but of the base server, email server, DNS servers etc. It’s nice to think that we can just pay MS to do that for us – even if they have a poor track record.
    Some days i feel like an orange! Other days i feel like an Apple. And while today 90% of my bread and butter is made developing PHP web applications, i would never say that i would not, could not use ASP.Net should i need to. I don’t like MS’s latency on getting on board with new technology, but then there are many others who are quite happy to know what they know, and are not ready for Web 3.0 for another 5 years yet, they’ve just started to learn XML and Ajax, and having to switch gears to learn JSON is just too much to handle – they like the slow and sure roll-outs of MS releases.

    • Guest

      awesome comment

    • Guest

      Whilst we DO compare the two, therefore they CAN be compared. They both serve the same end function, they are both tools to get a person to that end fuction. It’s an issue of whether that tool fits in your hand or not. As semi-intelligent people, we look for efficiency in our method, even though the end result may be the same. If the end result is not the same, then we choose the appropriate tool to make the result both appear and function to be more appealing to the end user. Without the end user’s approval, we have gained nothing from our intended goal. Do we buy a hammer because it’s expensive, or do we buy it because it serves our purpose? Go PHP and MySQL – it serves all purposes and it’s free.

  • http://www.apex-internet.com Guest

    I own a web hosting company and from my experience, PHP is definitely the way to go. Why? Because it is FREE, stable, and with basic programming knowledge easy to learn. Whether you go down the path of PHP or ASP.NET, you will need to learn the language in order to use it. The LAMP platform (Linux, Apache, MySQL, PHP) is rock solid and has been for years. I have looked at both PHP and ASP.NET and to me PHP seems much easier to learn. I can set up a Linux machine without having to buy another copy of Windows, and get to work rather than worrying about costs and licensing. When it comes to running a Linux server alongside a Microsoft server, Linux is far more stable and has far fewer maintenance headaches of Windows. To me, the maintenance side is a selling point as I have better things to do than reboot a Windows server once a month installing security patches.

  • http://www.notething.com Mono

    Great comparison and great discussion. But I believe that this discussion never ends. Because they both have advantages and disadvantages. And the first place changes from which perspective you look.

  • Guest

    ok you may think php but hear this.
    and i’m talking about asp.net and visual studio’s now.

    asp has c#or vb wich are two of the most used language’s,
    asp uses visual studio’s wich means BOOM INTELLICENCE and the propper use of classes and all the libraries.

    asp is overall also nicer coding i mean like when you have mayor sites written in php its hard to look at the code and see what it does while in asp its better to order it.

    visual studio’s also has a tool box wich takes allot of coding of your hands and face it linq rules.

    but all of this indeed is not free.

    i have visual studio’s and my vote go’s for asp!

    • Guest

      You don’t program much, do you? Your spelling is not quite optimal, especially when you consider that one mistyped character in code can mess the whole thing up.

      • ML

        Did you consider the possibility of English not being his/her first language? In programming, logical thinking is as important as properly spelling oh-so-hard commands such as “print”, “while”, for”.

        • Guest

          You missed “.

      • Guest

        In your face, sucker.

    • Guest

      I think the article is talking about Classic ASP vs. PHP and not ASP.NET (which is a lot different than ASP)