|Author : DAOUDI Samir | Context : MSc Software Engineering – Internet Programming
The web field has seen major changes since last decade; Many technologies and tools have been designed to make the web what it looks like today. We can see nowadays very powerful web site allowing a great level of interaction and security with users and all these changes made our lives better.
Solutions that have been developed arround the web would never exist (or without the same efficiency and power) if great programming languages and additional scripting ones did not exist. So what is hidden behind this important web applications. A general overview of the flow between user and web server is important to describe before moving toward web development technics.
1st of all we should consider the web servers that are the 1st connection point from the end-users point of view; They connect to web servers that can deal with thousands of connections and queries simultanuously. Than, the web server sends back (after different manipulations) the HTML page to the users. If the page was a dynamic one, it gets rendered by the web server and the results sent as HTML. The web browser present the result (graphics and text) finally to the user.
The classic or static HTML pages have been covered earlier, so now let’s focus in dynamic ones.
What are the dymanic web pages?
The age of static web pages is over, for long time, the web was based on many simple static HTML web pages linked together (Ulman, 2003). However, today’s users expect web pages that are updated frequently and administrators are seeking for an easy to maintain and update. For these reasons and other, building web sites as a set of static pages is no longer acceptable. Dynamic web pages are the solution for all these concerns, in fact Dynamic pages can be defined as web pages that are generated by the web server when users require them and can also be changed by the interaction with users. These dynamic pages are a fundamental part of Web 2.0.
Dynamic web sites can also be defined as application rather than sites. They should:
– Respond to different parameters (eg. Time, version of the browser …etc.)
– Generally have interfaces where administrators can manage the content.
– Having a “memory”, allowing for user registration and log-in.
– Are easier to maintain and upgrade…etc. (Ulman, 2003).
Dynamic web pages programming languages
Two major dynamic programmig languages have taken the lead: PHP and ASP.
PHP stands for Personal Homepage Page, the name is a little bit ugly as it gives the impression that it is just dedicated for personal web sites. PHP is a scripting language that gives web sites a dynamic aspect as it allow for example :
– Sending feedback form a website to your mailbox.
– Uploading files from a web page.
– Generating thumbnails for large images.
– Files manipulations (I/O).
– Displaying and updating information dynamically.
– Connecting to dabases for data extraction and manipulation …etc. (Powers, 2010).
ASP stands for Active Server Pages, it was initially released in Nov 1996; It provides an easy way to create dynamic web pages. At that time, other languages were very popular as CGI and Perl, however, ASP quickly gained in popularity for the following reasons:
– Ease of data access.
– Ease of page design.
– Components Object Model (COM) interoperability.
– Relatively flat learning curve for many programmers (Smith, 2002).
These particular programming languages have the particularity of supporting scripts which can be executed without compiling but are interpreted instead. Hence, what is exactly scripting?
– Larry Ullman (2003). PHP and MySql for dynamic web sites. ISBN: 0-321-18648-6.
– David Powers (2010). PHP Solutions: Dynamic Web Design Made Easy. ISBN: 978-1-4302-3249-0.
Available online at : http://www.w3.org/standards/webdesign/script.html.
– Steven A. Smith (2002). Asp.Net by Example. ISBN:0-7897-2562-2.