General Question on PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinot85
    New Member
    • Aug 2007
    • 53

    General Question on PHP

    Can any one tell what is the advantage of using PHP rather than using ASP.NET or J2EE?
    The question i have asked because nowadays PHP is emerging equally with that of ASP.NET and J2ee
  • coolsti
    Contributor
    • Mar 2008
    • 310

    #2
    I am certainly not the expert here, but I once read that PHP was a better technology because it was more streamlined than asp. Something about asp had to first call underlying dll's and code to do it's work whereas PHP did the tasks itself. This means that PHP runs more efficiently and with less computer resources.

    From a programming point of view, I have experienced asp only once, when I had the task to translate a small web application from asp/MSSQL to PHP/MySql, and from a syntax point of view, I find PHP far easier to code in. But here I must admit my experiences with asp are very limited.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Don't believe everything you hear.

      Comment

      • vinot85
        New Member
        • Aug 2007
        • 53

        #4
        Thank u coolsti,
        Information provided by you has given me answers for many questions. Thank you.

        Can you tell what can be done in PHP, that cannot be done in ASP.NET?

        Comment

        • nashruddin
          New Member
          • Jun 2008
          • 25

          #5
          Things to consider:

          1. PHP runs on most operating system, while ASP not.
          2. PHP runs faster than Java
          3. It's free

          Comment

          • Atli
            Recognized Expert Expert
            • Nov 2006
            • 5062

            #6
            There isn't really anything you can't do in one language that you can in another.
            How things are done can be drastically different tho.

            A big difference between .Net/ J2EE and PHP is that the basis for the first two languages were not created for web development. Both .Net and and Java are designed for event driven programming, such as conventional window programming.
            Much of the ASPX stuff is even built to "simulate" that sort of behavior.

            Websites are more of a "hit-and-run" kind of thing, where the code is run in one quick burst and the results sent. They are "stateless" . There is no waiting for user interaction.

            PHP was developed specifically to deal with this sort of thing. It was meant to execute in quick bursts without wasting to much resources.

            Comment

            Working...