Documente Academic
Documente Profesional
Documente Cultură
General
AnnouncementsForum
NICHOLAS KAVOI PETER
Graduate Assistant
Faculty Of ICT
nicholas.kavoi@zetech.ac.ke
0721287208
Hello students;
My Name is Mr. Nicholas Kavoi, facilitator for web development 2. I take this
opportunity to welcome you to web development 2. Each and every student is required to
participate in topic discussion forums and do and submit all topic assignments and online
CATS. Kindly find the course outline shown below for our guide.
COURSE CONTENTS
Apache
IIS
Tocat
Wamp server
Xamp
3. INTRODUCTION TO PHP
Definition of PHP
Characteristics of PHP
Advantages of PHP
Uses of PHP
Creating PHP programs: dynamic client server systems
4. FORM HANDLING
Form attributes
GET Method
POST Method
Alert box
Prompt box
Confirm box
Managing events
creating user interface
connecting to Mysql database
Web applications
6. WEB RESOURCES
7. WEB DATABASES
Oracle database
Mysql database
Sybase
informix
8. REVISION QUESTIONS
9. CAT 1
10. CAT 2
Web Development II Class Attendance
CAT 1File
CAT 1Assignment
Topic 1
Hello students;
In this topic, we shall describe the meaning of web development, web technologies and
web development process.
Topic 1File
Assignment 1
Topic 2
Topic Two
2. Describe the difference between two tier and three tier architectures.
Introduction
2. Two tier
Topic 2 Notes
CLIENT SERVER MODEL
It is a distributed system model which shows how data and processing is distributed
across a range of components.
Clients may have to know the names of the available servers and the services that
they provide. However, servers need not know either to identify of clients or how
many clients there are. Clients access the services provided by a server through
Remote Procedure Calls (RPC) using a request reply protocol such as HTTP
protocol. Essentially, a client makes a request to a server and waits until it receives a
reply.
Set of clients.
Network.
Servers
These terms refer to the two processes or two applications which will be
communicating with each other to exchange some information. One of the two
processes acts as a client process and another process acts as a server.
Client Process:
This is the process which typically makes a request for information. After getting
the response this process may terminate or may do some other processing.
For example:
Internet Browser works as a client application which sends a request to Web Server
to get one HTML web page.
Server Process:
This is the process which takes a request from the clients. After getting a request
from the client, this process will do required processing and will gather requested
information and will send it to the requestor client. Once done, it becomes ready to
serve another client. Server process are always alert and ready to serve incoming
requests.
For example:
Web Server keeps waiting for requests from Internet Browsers and as soon as it gets
any request from a browser, it picks up a requested HTML page and sends it back
to that Browser.
Notice that the client needs to know of the existence and the address of the server,
but the server does not need to know the address or even the existence of the client
prior to the connection being established. Once a connection is established, both
sides can send and receive information.
4. Easy to add new servers and integrate it with the rest of the system or upgrade
existing servers transparently without affecting other parts of the system.
There may be no shared data model across servers and sub-systems use
different data organisation.
This means that data interchange may be inefficient;
Redundant management in each server
4. No central register of names and services - it may be hard to find out what
servers and services are available.
2-tier architectures:
In this architecture, client directly interact with the server. This type of architecture
may have some security holes and performance problems. Internet Explorer and
Web Server works on two tier architecture. Here security problems are resolved
using Secure Socket Layer(SSL).
3-tier architectures:
In this architecture, one more software sits in between client and server. This
middle software is called middleware. Middleware are used to perform all the
security checks and load balancing in case of heavy load. A middleware takes all
requests from the client and after doing required authentication it passes that
request to the server. Then server does required processing and sends response back
to the middleware and finally middleware passes this response back to the client. If
you want to implement a 3-tier architecture then you can keep any middle ware like
Web Logic or WebSphere software in between your Web Server and Web
Browsers.
2. Topic 3
Topic 3: Installation of WebServers
Introduction
In this topic will focus on the installation of webservers such as IIS, Wampserver, and
Xamp. The learner should be able to configure one of the webservers which can be used
in designing web applications.
Objectives
By the end of this topic you should be able to:
Install webservers
Learning activities
Assessment
The submitted assignment in activity 3.2 will be graded
Topic Resources
URL Links
https://www.google.com/search?
source=hp&ei=5Ds1W_CgGdr4rQGIsrxg&q=installing+wamp+server&oq=instal
ling+wamp+server&gs_l=psy-
ab.3..0l4j0i22i30k1j0i22i10i30k1j0i22i30k1l3j0i22i10i30k1.574224.581570.0.58
8095.24.20.0.0.0.0.2496.2496.9-1.1.0....0...1.1.64.psy-
ab..23.1.2495.0...0.HlTBVGNYj90#kpvalbx=0
http://www.developerdrive.com/2011/08/installing-and-configuring-a-
wamp-server-on-your-computer/
https://www.wikihow.com/Install-WAMP
Topic 3 Notes
I’ll give you simple steps for ‘Installation of WAMP Server’. We need to download the
WAMP server Package .exe file from official WAMP server page. Choose file with
Config of your system.
after select your file, It’ll ask following Popup. Don’t worry about this. Just click ‘you
can download it directly’
You’ll get below Setup Wizard window, When you Run WAMP server .exe file. It shows
config of WAMP. Click ‘Next’ button to continue.
You should agree the license of WampServer before Installation of WAMP Server.
Here, You should select the Server Location. Most of the server installing into C
drive only. Me too installing into C drive. You can browse any other location and click
‘Next’.
And choose which icons you want.
Just double click the Wamp Server icon. You’ll get following small icon in TaskBar.
First it’s color is Red and change to Orange. At-last it goes to Green color. If green color
comes, Your WAMP server running successful.
Now see your WAMP server Home Page with following URL ‘http://localhost/’.
Now Installation of WAMP Server is finished. If you get any problem, ASK me.
Topic 4
Topic 4: Creating dynamic client-server systems
using PHP
Introduction
In this topic, we are going to explain the meaning of dynamic client-server systems and
create a client-server system using PHP.
Objectives
By the end of this topic you should be able to:
Learning activities
Assessment
The activity 4.2. and Participation in the discussion in activity 4.3 will be graded
Topic Resources
URL Links
1. https://www.id.uzh.ch/dam/jcr:ffffffff-a138-dadb-0000-0000534f5791/php-
mysql.pdf
2. https://www.tutorialspoint.com/internet_technologies/web_pages.htm
Topic 4 Notes
Creating dynamic client-server systems
Scripting Laguages
Scripting languages are like programming languages that allow us to write programs in
form of script. These scripts are interpreted not compiled and executed line by line.
Client-side Scripting
Client-side scripting refers to the programs that are executed on client-side. Client-side
scripts contains the instruction for the browser to be executed in response to certain
user’s action.
Client-side scripting programs can be embedded into HTML files or also can be kept as
separate files.
Dynamic websites
A dynamic web site is one that is written using a server-side scripting language such as
PHP, ASP, JSP, or Coldfusion
iii. There are little or no ongoing costs, unless there is a change in the basic
design or an extra capability added.
i. The design of a dynamic site is more fixed than a static one because many
of the pages are essentially a template into which data and content is poured to create
multiple pages of a similar type.
ii. Initial higher cost than static website due to additional functionality
Server-side Scripting
Sever-side scripting acts as an interface for the client and also limit the user access the
resources on web server. It can also collects the user’s characteristics in order to
customize response.