For business applications I would suggest .NET and SQL Server since these are licensed products that come with support. Although there is allot of PHP support available on the internet it is open source and so you may find that you will have to air your organization's 'dirty laundry', if you will, on newsgroups such as this one. Going with a licensed product that comes with support that is a phone call away as opposed to digging through posts should a development or even worse a production issue arise.
Wow! Just saw this one and I had to comment briefly. I am not sure what "proper coding" means, but if spaghetti code is what you mean, then yes, use PHP. That is basically what you will end up with. Also, you need to be more specific with what you are comparing. .Net is a framework that allows building web sites, executables, web services, etc. etc. etc. PHP, you get web pages and that is it, correct? Also, the IDE for .Net apps is Visual Studio, and the IDE for PHP is ... notepad or another text editor.
So, these are my brief comments that I am sure will stir up some more comments.
I would laso like to add that .NET, being a framework, is consumable by many programming languages like CFML8 and Python... not just windows client applications and provides great flexibility in the functionality while not letting you "jump off a programming cliff", if you will.
Last edited by tattooedscorpdc; 05-07-2009 at 03:24 PM.
If "spaghetti code" - means just putting everything in one file without writing functions and classes or any other structure, then it's kinda wrong, at least for me anyway.
As I use both for web development, I make my judgement based on that.
The problem I found with .NET is that a lot of it is a locked in functionality, so it takes far more effort to get it all just to work. That is exactly why I advise learning .NET FIRST.
Once you can write .NET properly though it does have some of the more useful features like combining both server and client side scripting. Another advantage of learning .NET first will be a habit of declaring variables in the begining of the page/function
The bigest advantage for PHP is that it can run on ANY server where's .NET is limited to Windows servers only
One can create web services in both PHP and .NET
I tried to explain it the best I could. There always will be those who will try to ditch one or the other. Learn them both and then make your choice.
I try to improve at both of them despite prefering PHP.
I use PHP, Java and .NET for development - they all have their plus points and I think that they will reiterate some other points mentioned here.
Almost exclusively .NET as I write both applications and websites and you can share a large portion of the back-end code between apps and websites. Also the support situation is another reason. The other main reason is the IDE which is very slick, great debugging on-the-fly (you could write a whole article on how good the IDE is to be honest). Speed of building software is also a big business incentive.
PHP mainly and some Java. In some ways the fact that I don't use a really nice IDE for either of these means that I can edit code on any machine and even online (my host has browser-based code editors). It is very cheap to get hosting with databases and lots of impressive free software to install. If my job involved using these languages more, I guess I would do .NET for a hobby though as I think it can't do any harm to be good at all of them!