How do websites work

Dynamic websites with Linux

This is how dynamic websites work

In order to solve the problems with dynamic content, clever techniques for the dynamic generation of web pages were devised. Microsoft's Active Server Pages (ASP) and JavaSofts or Sun's Java Server Pages (JSP) are examples of this. But a well-known solution that has meanwhile become indispensable in the WWW has also developed in the open source sector. Like ASP and JSP, Personal Home Page, or PHP for short, offers the option of a script language embedded in HTML.

The functional principle of dynamic pages is quite simple: Instead of sending a static HTML page to the browser, the HTML code is generated dynamically on the server according to the instructions in the script and sent to the browser. The user doesn't notice any difference - at most, the page may take a little longer to load. In other words: The PHP scripts (and ASP as well as JSP) are executed on the server - in contrast to other HTML-embedded scripts such as VBScript or JavaScript, which the client's browser executes itself.

Most of the time, dynamic websites also have a database in tow from which the script fetches the data. Databases are multi-user capable and therefore no problems arise even if the content is edited at the same time. MySQL is widespread in Linux because it is available free of charge and offers sufficient performance. Often you see a solution made up of Linux, Apache, MySQL and PHP, or Lamp for short, for dynamic websites.