Last post Jan 19, 2016 08:00 AM by Mikesdotnetting
Jan 13, 2016 01:00 AM|BradleyDon|LINK
I was looking over the PHP tutorials on w3schools here:
The tutorial introduction mentions that PHP is an alternative to ASP.
I was wondering, what the differences between PHP and ASP., and why would you use one over the other? What kinds of projects would you want to use ASP over PHP?
Jan 13, 2016 04:20 AM|umairaslam22|LINK
The difference is only the syntax difference and there servers Here I am mentioning some features , technically speaking you can do all tasks and built application on any of the above server side programming languages
1. ASP uses VB.Net/Vb and C# for its server side programming , While in php the code is mixed in between html tags
2. ASP use code behind model after classic asp (separate code and UI file .aspx and .cs) , PHP donot use code behind model.
3. ASP Uses special server side tags that are absent in php and php as whole rely on html tags
4. ASP uses IIS as web server to render / compile its pages on windows platform and php uses apache as web server preferable to run it on linux.
So you have to work a little more in php as compared to asp/asp.net but it doesn't hurt performance or any thing like that. Sometimes its beneficial as you have full control over your html content displayed. (for ASP here I means ASP.Net and not Classic
Jan 19, 2016 06:50 AM|ScottV.|LINK
PHP is a scripting language used to create websites, and ASP is the web portion of the .NET environment. You can pretty much use either to achieve the same end-results (a website) - though PHP is more lightweight (install the hyper-processor on your web
server and off you go - script your pages).
.NET, as a whole, is an environment that encompasses a range of technologies and frameworks involving languages and tools that enable you to do general purpose programming, systems programming, and web programming. There's a whole ecosystem in .NET from
which you can cherry-pick depending on what you want to do. I guess it boils down to one is scripting and the other is programming.
.NET started out as a Windows platform programming environment but is evolving into a cross-platform venture such that you can actually develop in VB <cough> or C# and target iOS, Android, Windows, or web platforms. <yipee!>. That said, the latest release
of ASP.NET and .NET allows you to deploy your web solutions on other hosting options besides IIS ~ thanks to the OWIN implementation.
Jan 19, 2016 08:00 AM|Mikesdotnetting|LINK
The "ASP" referred to in the link you provided is Classic ASP, which no one uses these days. They are both scripting language frameworks and fairly easy to learn. The replacement for Classic ASP is ASP.NET. There is no difference at all in terms of the types
of projects you can develop using either PHP or ASP.NET. Ultimately, which one you use will most likely come down to personal preference.