ASP.NET & PHP Master Thesis in Software Engineering
Total Page:16
File Type:pdf, Size:1020Kb
Comparison of Web Development Technologies ‐ ASP.NET & PHP Master Thesis in Software Engineering Author: Ramesh Nagilla ([email protected]) Supervisor: Frank Lüders ([email protected]) Examiner: Kristina Lundqvist ([email protected]) 1 Abstract Web applications play an important role for many business purpose activities in the modern world. It has become a platform for the companies to fulfil the needs of their business. In this situation, Web technologies that are useful in developing these kinds of applications become an important aspect. Many Web technologies like Hypertext Preprocessor (PHP), Active Server Pages (ASP.NET), Cold Fusion Markup Language (CFML), Java, Python, and Ruby on Rails are available in the market. All these technologies are useful to achieve the goals of Clients and business organizations. ASP.NET and PHP are the most competing out of all the technologies. Most of the companies and developers think that one is better than other. The main aim of this thesis is done by taking this point in to the consideration. A Photo Gallery application is developed using ASP.NET and PHP in order to compare the two Web development technologies. Many points are taken in to consideration in order to differentiate them and conclude which one is the better among the two technologies. 2 Acknowledgements I would like to thank my supervisor Frank Luders for his constant help, support and guidance during this thesis work. I also would like to thank my friends who have given me enough strength and support during this thesis. 3 Table of Contents 1. Introduction ........................................................................................................................................................ 8 1.1 Purpose of the document ............................................................................................................... 8 1.2 Problem Statement ......................................................................................................................... 8 1.3 Method followed to solve .............................................................................................................. 8 1.4 Target Audience .............................................................................................................................. 8 1.5 Web Application.............................................................................................................................. 8 1.6 Report Outline ................................................................................................................................ 9 2. Background ....................................................................................................................................................... 10 3. Related Work .................................................................................................................................................... 11 4. Fields of Web applications ........................................................................................................................... 11 5. Competitive Web technologies ................................................................................................................... 11 6. Photo Gallery Application functionalities ....................................................................................... 13 6.1 Registration ................................................................................................................................... 13 6.2 Log in ............................................................................................................................................. 14 6.3 Photo Gallery ............................................................................................................................... 15 6.4 Manage Categories ....................................................................................................................... 16 6.5 Upload Photos ............................................................................................................................... 17 6.6 Add Comments ............................................................................................................................. 18 7. Database ........................................................................................................................................ 19 8. Implementation in ASP.NET ........................................................................................................... 20 8.1 ASP.NET ......................................................................................................................................... 20 8.2 .NET Framework ............................................................................................................................ 20 8.3 SQL Server 2008 ............................................................................................................................ 21 8.4 ASP.NET development server ....................................................................................................... 22 8.5 Visual Web Developer 2010 Express ............................................................................................ 22 8.6 Master Pages................................................................................................................................. 23 8.7 ASP.NET Content Pages ................................................................................................................ 24 8.7.1 MasterPage.master.cs .............................................................................................................. 24 8.7.2 Index.aspx.cs ............................................................................................................................. 24 8.7.3 login.aspx.cs .............................................................................................................................. 25 8.7.4 forgotpassword.aspx.cs ............................................................................................................ 25 8.7.5 changepassword.aspx.cs ........................................................................................................... 25 8.7.6 myhome.aspx.cs ........................................................................................................................ 26 8.7.7 manage_categories_user.aspx.cs ............................................................................................. 26 4 8.7.8 photoupload.aspx.cs ................................................................................................................. 26 8.7.9 photogallery.aspx.cs .................................................................................................................. 27 8.7.10 feedback.aspx.cs ...................................................................................................................... 27 9. Implementation in PHP .................................................................................................................. 28 9.1 PHP ................................................................................................................................................ 28 9.2 WAMP ........................................................................................................................................... 28 9.3 Apache Server .............................................................................................................................. 29 9.4 MySQL ........................................................................................................................................... 30 9.5 DreamWeaver ............................................................................................................................... 32 9.6 PHP Content Pages ........................................................................................................................ 32 9.6.1 index.php .................................................................................................................................. 32 9.6.2 login.php ................................................................................................................................... 33 9.6.3 forgotpassword.php .................................................................................................................. 34 9.6.4 changepassword.php ................................................................................................................ 34 9.6.5 photogallery.php ....................................................................................................................... 34 9.6.6 manage_categories_user.php .................................................................................................. 35 9.6.7 photoupload.php ...................................................................................................................... 35 9.6.8 edit_description.php ................................................................................................................. 36 9.6.9 add_comment.php .................................................................................................................... 36 9.6.10 feedback.php .......................................................................................................................... 36 10. Comparison between ASP.NET and PHP ......................................................................................