The night before a written exam, you open the board's website, type your roll number and press Download. A page appears with your name, your photograph, your centre and your seat number, ready to print. Nobody typed that page in advance. A second ago it did not exist. Fifty thousand other candidates pressed the same button this evening and each got a different page.
So who made yours? Some program, somewhere, read your roll number, looked in a database, wrote a page and handed it back, and it did all that between your click and your screen. Where does that program live? What is the machine called, and what software on it answers your browser in the first place? Why does the website's name, admit.example.gov.bd, lead to that machine and not to another? And who pays for the machine to stay on all night?
By the end of this chapter you will be able to say where a piece of code runs, in the browser or on the server, and prove it. You will read and write PHP the way the exams ask, down to the output of a short program. You will make a PHP page read a form, remember a visitor with a session, save and fetch rows in MySQL, and log a user in without storing a password. You will explain what a web server does, tell it from an application server, follow a servlet and a JSP page from source to answer, and draw the reverse proxy and load balancer in front of them. And you will compare the four kinds of hosting, tell a web portal from web hosting, and list what must be set up for a name to lead to a site.
Every result shown was produced on this computer, on the loopback address 127.0.0.1; where a tool was not installed, we say so. We go in nine parts, from where code runs to putting a site online.