Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   PHP Vs .NET (http://www.go4expert.com/forums/php-vs-net-t17481/)

aspguy 12May2009 11:31

I Just happen to see this and I was shocked.

I searched on Monster /naukri and saw this astonishing results

42 PHP jobs in bangalore India versus 128 .NET jobs.
Out of 42 many were low paying and internship jobs

I'll probably get a ton of :cuss: for posting this, but the fact of the matter is "how much you hate MS you cannot live without it"

shabbir 12May2009 12:42

Fact remains Fact no matter how much we hate or love something

mgm02 13Aug2009 15:43

A recent question on Stack Overflow (and subsequent answer that I wrote for it) inspired this post. I had recently been discussing URL rewriting in depth with my brother, and have also been doing some introductory work with the routing engine in ASP.Net MVC, and the question piqued my interest since I had been meaning to look at this more closely for some time.
The question on Stack Overflow is titled "How do I route images with ASP.Net MVC", but fundamentally the question is really asking "how can I use ASP.Net MVC to re-route URL's to actual physical files, rather than methods of a controller?"
To be clear, lets address the conceptual differences between routing and url rewriting. Url rewriting takes the requested URL and modifies it before your code ever sees it. As far as your application is concerned, the client requested the rewritten URL. All that URL rewriting does is to change one URL into another URL, based on pattern matching.
Routing is a different and much more powerful beast. The ASP.Net routing engine maps an URL to a "resource", based on a set of routes. The first route to match the requested URL wins the prize, and sends the request off to the resource it chooses. For the ASP.Net MVC framework (which uses System.Web.Routing under the hood), a resource is something that can handle the request object, which is always a piece of code.
So where does that leave physical files? If a request is always parsed by the routing engine and then handed off to some function somewhere, how can we ever route a request for an image to actually return the physical image?
Well, it takes a tiny bit of legwork, but once we're through it, I'm confident you will see the huge advantages that routing has over simple url-rewriting. We will show the equivalent of url-rewriting by handling a request for an image using an URL that doesn't map to a physical path, but be able to return the image anyway.

naimish 13Aug2009 17:30

I do agree with you, "how much you hate MS you cannot live without it" :D I just love MS

jeklin 18Feb2010 14:46


One of the most confusing decisions that IT policy makers of companies come across is which way to go .NET or PHP. Both have their merits and limitations. Deciding one is entirely dependant upon your budget, technical skills, requirements and your overall corporate methodology.

PHP is the most popular open source programming language used to build web-sites that rely upon dynamic content. PHP is free and so are almost all of its supporting tools, platforms, databases and even OS. Being Open Source it got good support, code snippets and helps at various on-line open source forums. It even got Zend optimizer which compiles the code and makes code much faster and hence making it almost equivalent to other compiled web programming options. It is fairly easy to get a PHP programmer and many of the times if you have budget constraints, you can get freelancers with excellent skills in PHP.

.NET is really a framework, that consist of a framework with support of various programming languages e.g. C#, ASP.NET, VB.NET etc. Like many good things except air, water, sun nothing is free in the world and so is .NET However it does come up with excellent support from Microsoft, provides excellent help documentation, has excellent professionals (though none of them are cheap) to sort out any issues. Also since it is a complete framework it is used for things way above than building simple web-sites.


All times are GMT +5.5. The time now is 17:24.