Dipa Ahuja
what will you chose to develop website? PHP or ASP.NET ? And why?
By Dipa Ahuja in ASP.NET on Jun 28 2010
  • Brijesh Jalan
    Aug, 2010 16

    Hello diya ,
    I think it is difficult to say that which is better either PHP or ASP.Net but there r some difference in PHP and ASP.net are.

    Compilation is also different in PHP and ASP.NET.

    In PHP, when a page is requested, the HTML and inline is PHP Script compiled to binary format called Zend Opcodes. Once compiled, the opcodes are run by the Zend Engine and HTML is generated which is sent to the Client. Commercial products are available that increase the speed at which PHP pages are executed.

    In contrast, when an ASP.NET page is first requested it is converted into an intermediate language called MSIL (Microsoft Intermediate Language). The CLR then converts this MSIL to machine code. Conversion to machine code only takes place once for each page request (unless code has been modified). All subsequent requests use the already generated machine code. In ASP.NET no optimization product is required as the MSIL generated is already in its most optimized form.


    • 0
  • Deepak Bhatia
    Jul, 2010 4

    They also said that PHP is free and for asp.net we have to get license?

    Yes it's true as programmers can develop PHP applications virtually at no cost, because PHP is free to use. ASP.net is not free too, but its extensions are available for free on Windows platforms, upwards of 98. Hence, ASP.net is available to Windows users when they buy it.

    • 0
  • Deepak Bhatia
    Jul, 2010 4

    Hi Diya,

    I would just like to tell you what I feel since I have developed websites in both the languages.

    1. If you want to develop a simple website with a well structured code then go for asp.net but if website is bit complex like blogs, forums then go for PHP as in PHP there are so many tools by which you just drag and drop,(as we do it while creating asp pages) the entire blog with it's database and everything else will be created in one go.
    2. There has been so many work done in PHP and so many complex things have been developed and are availaible free to be used, so if you want complex things to be developed fast without any hardwork by you go for PHP.
    3. Visual Studio provides very easy and user friendly environment for developing ASP.Net sites, so if the user is really new without having any knowledge about sites go with ASP.NET.
    4. ASP.Net is developing very fast and I am sure in near future every one's choice will be ASP.

    It doesn't mean complex sites can not be made with ASP.NET but they require some time and of course structured coding is much easier in Visul Studio.

    • 0
  • Brian Luo
    Jul, 2010 1

    In fact, which language we can used it that will be decided by many conditions.
    Example: Web server,our customer's budget or his requesting, the tools and database is free or not etc...

    In my opinion many customers hope to decreased his budget in his project,include database and develop tools etc... , If he want this, we have to choose php and mysql etc.. when we develop new project for customer not upgrade customer's project.

    about choose database, we always estimate the data sum about 10-20 years. if the data is too big,we can choose oracle or DB2, if it is not ,we also can choose SQLSERVER, mysql,postsql even access. however it is not stationary.

    It is not difficult to us if we want to learn a new develop language after we know one language.

    • 0
  • Dipa Ahuja
    Jul, 2010 1

    they also said that PHP is free and for asp.net we have to get license? Is it so?

    • 0
  • Rimi Chatterjee
    Jul, 2010 1

    Hello Diya,

    Here's my answer: ASP.NET and PHP are 2 different languages altogether, however, the crux of the arguement is that ASP.NET runs a compiled code, i.e., when you run an ASP.NET website, it is compiled to machine code and saved as an executable file. Even if you don't compile it, it gets compiled in its first run, and then runs as compiled code, in its successive runs. Now, we all know that PHP is an interpreted language, i.e., it is saved as a code, and runs from that code. Compiled programs run faster than interpreted ones, as the latter have to be reduced to machine level code at runtime, and hence I would go for ASP.NET.

    And then, as we all know, ASP.NET comes with the advantages of .NET framework, be it its vast support for different languages, or its controls, as you have mentioned.

    • 0
  • Dipa Ahuja
    Jun, 2010 28

    i was asked this question in my interview..


    i replied i chose asp.net because we are provided many ready made controls so its faster to develop..

    so if any one have other other reply please reply here..


    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS