Friday, November 7, 2014

Dynamic web page


  • The definition of dynamic web page.
    • A dynamic web page is a web page that is generated by a server-side program or script that is running on a server. Often,the web pages changes according to the information that is submited by the web browser to the server.
  • How a web server processes a dynamic web page with PHP.
    • When  a web server receives a request for a dynamic web page, it uses the extension of  the requested file to determine which server or program should process the request. If the extension is php, the web server calls php interpreter to process the request and the data  that is submitted with the request.
    • The php page can use the data that gets from the web browser to access the appropriate data from database server. The application can also store the data that it gets from the web browser into the database server.
    • When php interpreter finishes processing the php page, it generates an HTML page and return it to web server. The web server then returns the page to the web browser.

Static Web page

  • The defintion of static web page.
    • Static web page is an HTML document that is stored on the server web and doesn't change in respone to user input.In other words,the content of web pages only can be change by web developers.Static web page is a plain text file with an extension of htm or html.
  • How  Static web pages are processed.
    • When user requests a static web page,the browser send a HTTP request to the web server that includes the names of the file that is being requested. When the web server receive the request, it retrieves the web page and send it back to the web browser in an HTTP response. This response includes the HTML document that is stored in the file that was requested.


  • Note:
    • HyperText Markup Language (HTML) is the language that is used to design web pages of an application.
    • Two protocols that web application depend upon.
      • HyperText Transfer Protocol (HTTP) is the protocol the web browsers and web servers use to communicate. It sets the spefications for HTTP requests and responses.
      • Transmission Control protocol/ Internet Protocol(TCP/IP) is suite of protocols that let two computers communicate over a network.