Ir al contenido principal

Introduction to server side

1. Diference between Static web pages and Dinamic web pages:

1.1. Static web pages:
These pages are stored in their final form, just as they were created, and their content does not vary. Only a programmer can change his content.
Steps given by a static web:
1) Your computer asks a web server for a page with the extension .htm, .html or .xhtml.
2) The server searches for that page in a page store
3) If the server finds that page, it retrieves it
4) And finally it is sent to the browser so that it can display its content

1.1. Dinamic web pages:
Their content changes based on various variables, such as the browser you are using, the user with whom you have identified, or the actions that have performed previously.
There are two types in dinamic web pages:
A) Those that include code that runs the browser. This pages use Html and Javascript. This code can incorporate multiple functionalities that can range from showing animations to totally changing the appearance and content of the page.
B)The Html of these pages is formed as a result of the execution of a program, and that execution takes place on the web server (although not necessarily by that same server).
A lot of this pages has extensions as .php, .asp, .jsp, .cgi o .aspx.
Steps given by a dinamic web:
1) Your computer requests a web page from a web server.
2) The server searches for that page and retrieves it.
3) In the case of a dynamic web page, that is, that its content must be executed to obtain the HTML that will be returned, the web server contacts the module responsible for executing the code and sends it.
4) As part of the execution process, it may be necessary to obtain information from a repository, such as consulting records stored in a database.
5) The result of the execution will be a page in HTML format, similar to any other non-dynamic web page.
6) The web server sends the result obtained to the browser, which processes it and displays it on the screen.

Source:
DAW-Madrid

Comentarios

Entradas populares de este blog

Using $_SESSION of PHP to do a simple Phonebook $_SESSION of PHP is a assosiative array that contain session variables available for the current script. We could use this $_SESSION array to store contacts from our phonebook. ·  Our phone book will have the next condition: If the name you entered already exists in the phonebook and no phone number is indicated, the entry corresponding to that name will be removed from the phonebook. First, we need create the inputs where the user will send her name and number phone: The next step is to obtain the data entered by the user and for this we will use the $_SESSION array. First we need create two variables to keep the name and phone recieved: Then we must initialize this array with the function sesion_start(). If you don’t write this line can’t use $_SESSION. How $_SESSION is an asosiative array we could use the key to store the phone and the value to store the name. Before we will change the number to s