Sunday, 28 July 2013

Understanding the Language of Web Servers

So far in this chapter, you’ve read about web page languages HTML, CSS, and JavaScript. These languages deal with the look and feel (HTML and CSS) and behavior (JavaScript) of the web page. Many web pages are merely saved documents that exist on a web server, but some are dynamically built, with real-time information retrieved as you request it.

When pages are built dynamically, on-the-fly, a program is running on the web server to build that page. These programs are called server-side programs. Just as JavaScript programs tell the browser how to behave, serverside programs tell the web page what elements and layout it will have; in other words, the HTML, CSS, and JavaScript are all added by the server’s program.

The program that runs on the server is written in yet another language, aside from the HTML, CSS, and JavaScript that you’ve already seen. Serverside programs for the web can be written in one (or more) of a number of languages. These include Microsoft’s .Net family of languages, Perl, Python, Java, and the one that this book concentrates on: PHP.

Of course, in order for the page to be seen by the user it needs to be sent there. Sending the page to the user is the web server, which in our case will be Apache. And many sites utilize databases to store information. That’s where MySQL comes in. As you’ll see, MySQL provides a great (and free) way to store data for your website.

No comments:

Post a Comment