|
Web Design ![]() This website demonstrates using wikis as teaching and learning tool. The course instructor is happy to share the teaching materials here with those who find it readable. |
Lecture /
Overview of Web TechnologiesA Web Design Lecture by Steven Choy Overview: This lecture gives you an overview of web technologies you need to understand as a Web developer. It also gives you a real-time demonstration of every steps in launching a simple web-based application in a new domain. It also suggests Web developer's toolbox. Domain Registrar, Name Server, and Web Hosting Machine
Domain Registrar and You
Name Servers and You
stepwise.hk -> 111.91.237.166
www.stepwise.hk -> 111.91.237.166
Web Hosting Machine and You
Web developer's Toolbox
Interaction between a Web browser and a Web server![]() What does a Web browser send to a Web server?
The first section is Request line, which includes request method, path, and protocol version.
The second section is called HTTP headers. It contains name-value pairs that carry information about the browser and other request details.
The first two sections are the same as a request using GET method.
The third section contains data that the browser intends to send to the Web server (e.g. upload images).
What does a Web browser receive from a Web server?
The first section is called response line, which includes protocol version and response status code.
The second section is called HTTP headers. It contains name-value pairs that carry information about the response message.
The third section is the content that can be any type of data (e.g. HTML code, CSS code, JavaScript code, image, etc).
Web Servers
<VirtualHost *:80>
ServerName stepwise.hk
ServerAlias www.stepwise.hk
DocumentRoot /srv/www/stepwisehk/
</VirtualHost>
<VirtualHost *:80>
ServerName findaway.hk
ServerAlias www.findaway.hk
DocumentRoot /srv/www/findawayhk/
</VirtualHost>
Server-side programs/scripts
This is the .php file in the server-side:
<html>
<head>
<title>test</title>
</head>
<body>
<h1>Today is: <?php echo date("F d, Y");?></h1>
<p>Thank you!</p>
</body>
</html>
This is the resulting code sent by the server to the browser:
<html>
<head>
<title>test</title>
</head>
<body>
<h1>Today is: November 18, 2011</h1>
<p>Thank you!</p>
</body>
</html>
Database Server
Summary and DemonstrationAs a demonstration, we create a new domain for a simple web-based application like the following: http://tutorialzine.com/2010/08/ajax-suggest-vote-jquery-php-mysql/ The following are the necessary steps of launching a website.
You need to provide name servers for your domain.
Demo: how to modify a name servers
Demo: how to add a new address record
Demo: how to tell the Web server to server a new domain
Demo: use FTP software to upload files
Demo: use PhpMyAdmin to create a new database
Demo: create tables in a database
Thanks for ReadingIf you would rather like to have this lecture note in printed format, please click the print action link in the top right corner. If you find any problem in this lecture note, please feel free to tell Steven via steven [at] findaway.hk. |