Post Subject: asp.Net vs PHP
Posted on: Feb 5, 2008
This is a decent article that I found and thought I'd post it for anyone looking to get into or expand on their web development abilities. I'm also going to expand a bit upon the article because I thinkt the developer is a .Net user.
Ok on the first topic of PHP is Free, the article talks about all of the development tools available for free and those are great for learning, no question, and from the perspective of an individual, they are evenly matched, but if you ever want to go into business, none of the .Net tools would be legal any more as they are only for non-profit development. You will need a copy of windows server 200x, sql server 200x, and visual studio 200x which you will all have to pay for. PHP is based completly in the open source community, so linux, apache, mysql, all free to use, and pretty easy to setup. so in that respect I'd have to give the point to PHP, and not .Net
The support topic was a pretty good point and fairly accurate. Microsoft is probably a lot quicker to fix bugs in the engine because they are a profitable organization. On the other hand php has huge user communities that can be incredibly helpful, far more then I've seen for .Net communities since PHP seems to have a larger following behind it. I'd keep those evenly scored.
The Language and Development is a tricky one to grade. the key point for .Net is that it can be programmed in multiple languages which can be a double edged sword. If someone hands you a script, you may only know the VB side, and not the 5 other potential languages the code is written in. Generally these apps are done in VB so there isn't to much to worry about. The writer calls PHP an archaic language but this I'm viewing as he was probably introduced to VB initiallyas opposed to Java or something along those lines. I'll be honest, php has a slightly non consistant naming scheme for function, some are all the words together others are seperated with underscores, but PHP has so many built in functions that it will save you soooo much time in the long run. I'd have to call this one a tie again. Additionally Aside from file extensions, php is designed to be backwards compatible. the php.net site will show you the functions and all the versions they work across. Some rewriting may need to be done but it will be a very minimal amount.
I'd keep goign on but it gets fairly boring after this point. to sum it up, the results are in, on database related matters, PHP kills .Net hands down, additionally I suspect that the number of PHP related security threats is directly related to the fact that they have such a huge community behind them. Securing a site isn't to difficult if you really know the code. I think the fact that sooo many large web apps are based in PHP really speaks for the usability of it. I've only seen two forums ever that weren't coded in PHP, one was in perl (which is hard to believe), and the other was in .Net look around at apps developed by people, and you'll see that there are more sppa done in php, especially non-commercial ones because of the huge user community behind them. If con is the opposite of pro, is Congress the opposite of progress?
yeah they have pretty different coding structures, asp messes with me because it's has a lot of visual options in the editor, and i'm used to just straight coding.
I learned towards php in the article and thats more because i use it, but as far as which one is better i don't think that's something anyone will ever be able to prove because i think it comes down to a matter of prefference. I think asp does has more roundability though since it runs off sql server and you can tie that into other things with microsoft pretty easily.
If con is the opposite of pro, is Congress the opposite of progress?