i've work开发者_如何学Goed with classic asp so far and want to change to php (instead of asp.net)
could someone explain the main benefits from php over asp/asp.net?
thanks
I'm not sure there is a definitive answer for this question as most of the items are going to boil down to your own style. And I have used quite a bit of both in my professional career. I just like c# better.
Both technologies are used to build web pages.
Both are highly flexible and provide you the capabilities to do whatever you want in a web site.
Both have idiosyncrasies that just take time to understand and get comfortable with.
Both have a large following and can be deployed just about anywhere.
Both have good database and security support.
You can shoot yourself just as easily with one as the other.
At the end of the day, the only real difference I can come up with is that the .Net languages are usually precompiled prior to deployment and therefore enjoy compile time checks and static code analysis.
Take a look at PHP vs ASP: An in-depth Comparison.
PHP has much more to offer than ASP which is why it powers sites like facebook and yahoo.
Main benefit of PHP is cheaper hosting.
Disclaimer: all below is IMHO. The only benefit of php vs asp.net I see is that it runs on open source LAMP stack, so if you want to get a job in a startup php skills might be more demanded than asp.net. Other than that, asp.net beats php on ease of implementation and flexibility. So being a biased asp.net developer, I would advise you to look into asp.net instead of php.
精彩评论