what will you chose to develop website? PHP or ASP.NET ? And why?
Dipa Ahuja
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.
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.
Hi Diya,
I would just like to tell you what I feel since I have developed websites in both the languages.
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.
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.
they also said that PHP is free and for asp.net we have to get license? Is it so?
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.
i was asked this question in my interview..