I'm totally with FarligOpptreden on this one. I don't really have much to add to his arguments. I've worked with both PHP and ASP.Net, and I much prefer working with .Net. For a number of reasons, but mainly because you can seperate code from markup in a way you cannot do with PHP and classic ASP.
For the typical small website, a PHP CMS like Joomla may be an easy fit, but that doesn't mean that ASP.Net is a bad choice.
I also prefer the calibre of developer I see building custom websites (PHP or ASP.Net).
I'd love a Rand for every time I saw a CMS developer paying out little chunks of cash for a "ready built plugin that does just what we need", only to find out that the plugin needs to be modified, but they don't have the skills to do it. These are not developers. They are lazy sods in for a quick buck with no ability to solve problems.
I also have to agree that all the websites i've seen hacked / exploited are those running on a CMS that hasn't been patched. A vulnerability is found in the CMS that affects EVERY site built in that version. The developers of the site don't patch the CMS (lazy sods again)... turkish hackers exploit all the sites they can find with the vulnerability and you end up with a huge "Hacked By... " all over your site.
Basically, going the CMS route is fine if you stay up to date and don't care much about building something completely different.
On the cost issue that's been thrown around here, I did a little checking quickly just to satisfy myself that .Net isn't actually that bad to host. Here's what I found (choosing the most similar specs in terms of disk space and bandwidth which would be best indicators of "Hardware" costs):
1. Web Africa
Windows Hosting
Elite - (2000 mb Disk Space & 20000 mb Traffic (ZA) & 10 MS SQL Server 2000/2005 DB's) - R251 pm
Linux Hosting
Enterprise - (2000mb Disk Space & 25000mb Traffic & 5 mysql/pgsql databases) - R300
So the linux solution is roughly the same price (if you assume the extra R50 covers the 5GB extra traffic). You get 5 more DB's on the microsoft hosting.
The costs are similar if you compare the Linux Elite and Windows Standard (also both similar in disk space and bandwidth)
2. Hetzner Germany
Root Server +/- 49 Euro. Windows OS adds 15 Euro. And that's the cheaper server. For the more expensize servers, the cost extra is the same, bringing the percentage difference down significantly.
3. Bytemark.co.uk
Add 10 Pounds to any of the dedicated servers for Windows Hosting. Again, as a bigger server is selected, the percantage increase drops.
I don't see how these differences are significant, especially when you factor in the cost of development into the total cost of a website. Depending on your hardware requirements, you could be saving money using windows hosting locally (WA Windows Elite vs Linux Enterprise).
Thoughts? Am I missing something here? Or are people really that cheap?
On w1z4rd's comment that ASP is 8 times slower than PHP (I will assume you mean ASP.Net here as classic ASP isn't really used any more), I call bollocks. PHP is an interpreted language, ASP.Net is a compiled language. That means that it does not have to parse the commands before it processes. The difference is actually much of a much and unless you have metrics, I have no faith in your statement. Comparing language speed is not an easy feat in a web environment as the main bottleneck is DB communications on a website which does not consume a lot of CPU.
[EDIT: I'll start with the metrics - turns out that ASP.Net is as much as 12 times faster than PHP if the PHP developer doesn't turn on op-code caching -
http://naspinski.net/post/AspNet-vs-php--speed-comparison.aspx]