Advanced Internet Technologies

Advanced Internet Technologies - Static Web Page A static...

Info iconThis preview shows pages 1–16. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Static Web Page A static web document resides in a file within a web server. The author determines the contents at the time the document is written. Each request results in exactly the same response, because the contents do not change. Static Pages Retrieve file Send file Request file Advantages of Static Web Document Simplicity, reliability and performance. Contains straightforward formatting specifications, no need to write a computer program. After created and tested thoroughly, the page can remain valid indefinitely. A browser can display rapidly and place a copy in a cache on a local disk. Disadvantages of Static Web Document Inflexibility – revised whenever information changes. Changes are time-consuming because they require a human to edit a file. Not useful for reporting information that changes frequently. Dynamic Web Page It does not exist in a predefined form. It is created by running an application program in a web server whenever a browser requests the document. The contents can vary from one request to another. Dynamic Pages Do Computation Generate HTML page with results of computation Return dynamically generated HTML file Request service Advantages of Dynamic Web Document Its ability to report current information such as stock prices, weather conditions, availability of tickets for a concert. A browser cannot distinguish dynamic form static pages. It places the responsibility on the server by running an application that accesses the needed information and creates a document. Disadvantages of Dynamic Web Document It is more expensive to create and hardware costs increase because a more powerful server is needed. The program must be designed carefully and tested extensively for valid outputs. Longer retrieval time because the server requires longer running time. The CGI Standard - Common Gate A widely used technology for building dynamic web documents. Originally developed by the National center for supercomputer Applications (NCSA). It specifies how a server interacts with an application program that implements a dynamic document. CGI Requirements It provides general guidelines and allows a programmer to choose most details. CGI does not specify a particular programming language. A programmer can choose an appropriate language for each document. Competing Technologies CGI & Perl PHP - PHP Hypertext Preprocessor LAMP Architecture (Linux, Apache, MySQL, PHP/Perl/Python) a web server infrastructure JSP - JavaServer Pages ASP - Active Server Pages CGI Web Application Run CGI program … … … print $result Request service HEADERS BODY...
View Full Document

This note was uploaded on 01/11/2011 for the course EE 5413 taught by Professor Hingcheungso during the Spring '10 term at City University of Hong Kong.

Page1 / 101

Advanced Internet Technologies - Static Web Page A static...

This preview shows document pages 1 - 16. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online