Salam Yakhlef

static website vs dynamic website

On January 02, 2023

Salam Yakhlef

Static website

It is the typical professional site, through which a specific company, product, or service is presented. Its functionalities are very basic and it requires little programming with the possible exception of a contact form. It is mainly programmed in languages such as HTML, CSS, or JavaScript, although CMS platforms can also be used. So, a post is a static, updatable, but static page.

Pages written in HTML require almost no development on the server since they do not require a database or server language processor, such as PHP or Java. The files are simply uploaded to the server and the web page functions according to its design and configuration.

The static web is suitable for websites that are not updated frequently or if they are, it is with great regularity.

Dynamic website

In a dynamic site, the process is different, the HTML file does not yet exist. It will be generated according to the parameters that you will send to it.

You will send them either consciously, for example by filling out a form and clicking on send. For example, in a quote request form, you will give the number of products desired, and the type of product desired and then the server will receive these parameters and will process the request.
You can also do it unconsciously, i.e. by clicking on a link. This link has parameters that are put in the URL (as we saw earlier in the part on URLs, it will be a URL of the form mon-site.com.
the script was made to understand these parameters, obviously, we do not send any parameters to any script, and according to these parameters, it will create an HTML file.

So it goes like this, you send a request with parameters, consciously or unconsciously, and the server understands these parameters, generates an HTML file, and then sends it back to you. It is displayed on your screen.

So as I explained to you, for a dynamic site to exist, we need a language called “server language”. And the server language par excellence, the most used in the world, is the PHP language.