130 likes | 263 Views
PHP vs ASP.NET. By: Colin Cramer. Overview. History Cost Popularity Support Scalability. History. PHP – Created in 1994 by Rasmus Lerdorf . He used as to track visits to his online resume. Personal Home Page Tools ->Hypertext Preprocessor
E N D
PHP vs ASP.NET By: Colin Cramer
Overview • History • Cost • Popularity • Support • Scalability
History • PHP – Created in 1994 by RasmusLerdorf. • He used as to track visits to his online resume. • Personal Home Page Tools ->Hypertext Preprocessor • ASP.NET – Created in 2002 by Scott Guthrie at MS. • He became product unit manager for developing the language further.
What is PHP? • Open-source language. • Utilizes its own code syntax, with assistance from HTML, CSS, and Javascript.
What is ASP.NET? • Microsoft’s answer to server-side languages. • Does not work on its own. Needs assistance from other languages like C#, Visual Basic, HTML, CSS, and Javascript.
Cost • PHP • Open Source = FREE!!! • Works on all OS • ASP.NET • Is a Microsoft product (which = $$$) • You must use Windows OS (or Mono)
Community Support • PHP – has many different communities catering to all levels of technical knowledge. • ASP.NET – has one main forum by Microsoft. (Some third party forums cost money)
Popularity *Based on calculating the number of hits using popular search engines* • PHP – TIOBE.com, ranked 6th as of this month. • ASP.NET – is not technically ranked, C# is 5th and Visual Basic is 7th.
Syntax Comparison: Ex 1 • PHP – /* This is a comment */ • ASP.NET – <%-- This is a comment --%>
Syntax Comparison: Ex 2 • PHP – <?php Echo “Hello World!” ?> • ASP.NET – <%HelloWorldLabel.Text = "Hello World!"%> <!doctype html> <html> <head runat = "server"> </head> <body> <form runat = "server"> <div> <asp:Labelrunat = "server" id = "HelloWorldLabel"></asp:Label> </div> </form> </body> </html>
Questions? • What did PHP originally stand for? • Personal Home Page Tools • What is the name of the open-source compiler used on any OS for ASP.NET? • Mono • What Content Management System uses ASP.NET? • Sharepoint • What does IIS stand for? • Internet Information Server
Conclusion • All depends on what scenario you will be in. • Both ASP.NET and PHP are great languages to use in making the most of your site.