ASP.net is havign better security compared to PHP. Also, you have the option of Master Pages to Improve Efficiency. The code-behind allows you easier to maintain the code when it comes to large websites.
| SitePoint Sponsor |
ASP.net is havign better security compared to PHP. Also, you have the option of Master Pages to Improve Efficiency. The code-behind allows you easier to maintain the code when it comes to large websites.


That is a very vague statement to make. You can use similar frameworks in PHP that allow the separation of code and design and master pages is easily reproducible too (and could be done years before ASP.NET had it). As for the security, that is entirely up to the developer programming the site/application. Yes, ASP.NET has security features built-in for form validation, but each of those can actually be turned off too.
PHP over the past few years has made major headway in security and helping others learn how to properly secure their sites/applications.
well,a far as i know about that is in the term of cost and support, PHP is open source and commonly runs on an open source platform like Linux, Apache, MySQL, PHP, It wins over ASP.net for providing the most cost effective solution and a large amount of resources.
Thank you sir for some advice.. its really help me a lot.
PHP is the best of my opinion when it is open source language..
Database Compatibility
As PHP uses MySQL for the purpose of database connectivity, it is highly flexible in nature. Another important fact is that it will incur extra expenditure because MySQL can be accessed for free. Whereas, ASP.Net uses MS-SQL for connecting database but MS-SQL can not be availed free from Microsoft.
Cost
Linux can be used for running PHP programs and Linux is free operating system. Therefore, the cost of developing a website in PHP language is remarkably low. On the other hand, you need to install Internet Information Server (IIS)on a Windows server platform if you want to run ASP.Net program. As Windows server platform is not a free product, the cost of production is bounded to be increased.
General Run Time
It has been observed that ASP.Net code runs slower than PHP code. This is because ASP.Net utilizes server space while running whereas inbuilt memory space is used by PHP while running.
Coding Simplicity
ASP.Net codes are somewhat complicated and a web developer needs to work hard to get the hang of it. But PHP codes are very simple and a programmer does not have to make a diligent effort because it is comparatively easier than other types of programming languages


This is a moot point, both PHP and ASP.NET can interact with MySQL or MS-SQL, or any of the other dozen databases that exist.
Yes, it does cost the license fee for a Windows box, but with that you can support. To get enterprise support in Linux, you have to pay for it as well (think Red Hat, Madriva, Ubuntu). Also, the up-keep of Linux is usually higher cost than Windows simply because you have to higher someone who really understands Linux and they don't come cheap.
Not even close. ASP.NET is compiled so it executes with better performance. The optimized code is then cached thus subsequent page loads are very fast. I'm not saying PHP isn't fast, but it is an interpreted language which is a big difference. Both store some of the execution in memory, php may get thrown into a swap file (written to disk) (if on linux) and you are low on RAM. Nonetheless, I don't think I can agree with the claim that ASP.NET is slower than PHP. Nor can I agree that PHP is slower than ASP.NET (way too many variables to consider).
This is a personal opinion. I write in both daily; I didn't have any problem picking up either of them. I was able to learn PHP within days, and the same was true for C# in the .NET framework. I've since spent over 6 years in both languages learning design patterns, good and bad practices, etc. If I had my choice, I'd use .NET for most of my work (so long as I have Visual Studio). Why? Because it forces you into OOP and it is setup so you can do OOP quickly. Granted the quickness comes down to the IDE. If I didn't have Visual Studio, I'd toss a coin to decide if I should write the piece in PHP or .NET (I'd actually analyze it to see which one fits best, but you get the point). Both are simple languages, both have idioms as well (although I'd argue PHP has more idioms than .NET - all those functions that swap the parameter order for things along the same nature is annoying).
Um...PHP is not tied to MySQL, nor is .NET tied to any single database. Can use MySQL with ASP.NET there is also a free version of SQL Server, quite named SQL Server Express. Again, you are not tied to a specific database with either platform.
CostYou would be surprised how little the price difference there is when buying and setting up servers whether it has Windows or Linux. Spending an extra few hundred dollars on a server that is almost $20,000 is nothing. Not to mention the monthly utilities cost to power and connect the server to the Internet, to paying the system administrator to maintain and manage the server, etc. The price of Windows is insignificant in the bigger picture.Linux can be used for running PHP programs and Linux is free operating system. Therefore, the cost of developing a website in PHP language is remarkably low. On the other hand, you need to install Internet Information Server (IIS)on a Windows server platform if you want to run ASP.Net program. As Windows server platform is not a free product, the cost of production is bounded to be increased.
General Run TimeWhere did you hear that nonsense? I've been using PHP for several years now, was the first language I learned. In all that time PHP being faster then a compiled language? No, that is utter rubbish. I don't even know where to begin your entire statement makes no sense and is completely wrong. what does "utilizes server space" even mean?It has been observed that ASP.Net code runs slower than PHP code. This is because ASP.Net utilizes server space while running whereas inbuilt memory space is used by PHP while running.
Coding SimplicityErrr, not really no. Its just different concepts of the same thing. Having a logical and analytic mind is all it takes to understand any programming language. They all have the same basic foundation the rest is just syntax sugar.ASP.Net codes are somewhat complicated and a web developer needs to work hard to get the hang of it. But PHP codes are very simple and a programmer does not have to make a diligent effort because it is comparatively easier than other types of programming languages


I'll just toss this one out there -- PHP is a seriously badly "designed" language. There are alot of better open-source, linux friendly languages to learn on than something that will take years of recovery as a developer to get past. If you want to get hardcore and close to the iron skip this web stuff and write straight C. If you want to be all nifty and neato and agile write ruby. If you want to be effective write python. If you want to hang with the lunatic fringe take up scala.
I'll add that C# and the .NET framework are probably one of the better designed and most consistent environments out there. Might be worth looking at as well. Be careful, Visual Studio will ruin you for most other things.
Bookmarks