Unit5 PLT Standalone and Web Based Programming-1
Unit5 PLT Standalone and Web Based Programming-1
Unit5 PLT Standalone and Web Based Programming-1
In computer games, a stand-alone game is one that can be played without requiring another game to
provide most of its operating code (as opposed to an expansion pack or a mod, which adds to a
previous game).
Computers themselves are often termed "stand-alone" if they are not connected to a network.
1. Two-Tier Architecture: The two-tier application programming model was developed to enhance
the file server application programming model. As compared with the file server application programming
model, the two-tier application programming model provides you with improved usability, scalability, and
flexibility of applications. In Two-Tier model, you will have two separate layers namely Client & Server. Two-
tier architecture is client/server architecture where a request to do some task is sent to the server and the
server responds by performing the task, where the client request is sent to the server and the server in turn
sends the request to the database. The database sends back the information/data required to the server
which in turn sends it to the client.
2
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
The simplest shape of Client-Server architecture is called two-tier architecture. In fact, most Client -Server
architecture are two –tier architecture. Term “Two-Tier” describes the way in which application processing
can be divided in a Client and Server application. A two-tier application provides multiple workstations with
a uniform presentation layer that communicates with a centralized data storage layer. The presentation
layer is generally the client and the data storage layer is server. Some exceptional environments such as the
X windows system, shuffle the roles of Client –Server application. In this application programming model,
the client application directly interacts with the server application without the presence of any intermediate
application. Most Internet applications such email, telnet, FTP, gopher and web are simple two tier
applications.
SERVER
The two-tier architecture is like client server application. The direct communication takes place between
client and server. There is no intermediate between client and server.
The above figure(Example :2) shows the architecture of two-tier. Here the communication is one to one.
Let us see the concept of two tier with real time application. For example now we have a need to save the
employee details in database. The two tiers of two-tier architecture is:
1. Database (Data tier)
2. Client Application (Client tier)
2. Three-Tier Architecture: In three-tier architecture, the data and applications are split onto
separate servers, with the server-side distributed between a database server and an application server. The
client is a front end, simply requesting and displaying data. Reason being that each server will be dedicated
to processing either data or application requests, hence a more manageable system and less contention for
resources will occur. The three tier clients server design says that data processing should be separated from
the user interface and data storage layers stored procedures provide the most common method of inter
action between user interface and data storage in a third tier. Three tier applications, Client are partially
thick. Apart from that there are two more layers application layer and database layer.
So, in client application the client writes the program for saving the record in SQL Server and thereby saving
the data in the database. The three tier system consists of following layers.
1. User interface
2. Data processing or business rules
3. Data storage
3
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
In a loading application functional three tier development the system becomes easier to maintain and
modify. The user interface for example: No larger cares where or how the system stores its data. Changes in
data storage, such as distributing the data across multiple database end-up having a much smaller impact or
affect on the system as a whole.
Three tier architecture having three layers. They are listed below:-
1. Client layer
2. Business layer
3. Data layer
Client layer: Here we design the form using textbox, label etc. Business layer: It is the intermediate layer
which has the functions for client layer and it is used to make communication faster between client and data
layer. It provides the business processes logic and the data access.Data layer: it has the database.
4
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
5
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
6. It supports for the smaller business. 6. It supports for the standard business and
distributed environments.
7. Microsoft's Visual Basic,Borland's Delphi, 7. C, C++,Small Talk,Basic,Ada 83,Ada93, SQL
and Sysbase's Power Builder are the 2- are the 3-Tier tools.
Tier tools.
6
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
1. HTML :
HTML stands for types of text mark up language. HTML is developed by Tim Berners Lee in 1990. To
standardize the HTML codes World Wide Web consortium (W3C) was formed in 1994.It uses markup
symbols or tags (codes) that describe format and layout of text , image, movie clips etc in a web page. It is not
the programming language like QBASIC, C++. The language consist of standardize code which defines the
structure of the information on a web page. Like making bold, italic, underlined letters, characters, heading
of the scripts, inserting various sound clips, videos and animated objects can be prepared easily using its
tags. Tables can be designed, background color of the web page can be easily designed, bullets can be easily
inserted using its tags. A web page browser interprets the text in a HTML file and presents it as formatted
readable web page. HTML document can be viewed an all types of system such as machine tosh PL and UNIX
machine. The HTML language coding characters, symbols are very easily understand by the developer and
user.HTML language codes are not sensitive to code. The good knowledge in HTML codes gives to the user
complete flexibility in designing pages. The user can create HTML documents using any text editor like
Notepad or Text pad.
Features of HTML:
1. It is a hypertext language so, it contains graphical and designing features for text, documents, images,
sounds etc.
2. It is platform independent language because it can be execute in any type of machine.
3. It consists of hyperlink feature for the web contents and documents.
4. It contains simple tags and tags attributes for coding any web page.
5. This language is not case sensitive so, there is no required to remember codes.
2. PHP:
PHP stands for Hyper Text Pre-processor. Which is widely used for creating programmed features for web
sites because it is easy to learn and also because PHP syntax is drawn from other widely used languages
,making it familiar to many programmers. It is used for open source general purpose scripting language that
is specially sited for web development and can be embedded into HTML. It has similar syntax as of
C,C++,Java and it is easy to learn also. This language is used to make a dynamic web page quickly. PHP can
be used to write the sort of sites that those who regularly use the web are likely to encounter every day. This
7
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
language devised by Ramus Lerdorf in 1994 for building dynamic, interactive web sites. Since then it has
been evolving into a full fledged language. PHP is large number of internet service provider (ISPs) and web
hosting companies that support it. Several millions sites are reported to have PHP installed. When you want
to work with PHP then you can write a PHP application that works with your Web pages, you need to have
PHP installed and configured. Because you will be writing a Web application, it is given that you will need a
Web server and some Web pages.
System requirements:
1. Server Software such as an operating system(Windows or Linux)
2. A compatible Web server such as Internet Information server(IIS) or Apache
3. PHP5 or any version of PHP
4. A relational database system such as SQLite or MySQL
5. A Web browser such Mozilla Firefox, Internet Explorer
6. A text editor such as Notepad or Emacs,BBEdit
3. Java Script
Java is a computer programming language which enables programmers to write computer instructions
using English based command, instead of having to write in numeric codes. It is known as a high level
language because it can be read and written easily by the developers, programmers .Like English, Java has a
set of rules that determine how the instructions are written. These rules are known as its “syntax”. Once a
program has been written, the high level instructions are translated into numeric codes that computers can
understand and execute. In the early nineties, Java was created by a team lead by James Gosling for Sun
Microsystems which is now a subsidiary of Oracle Corporation. It was originally designed for use on digital
mobile devices, such as cell phones. Whenever the first version of Java (Java 1.0) released to the public in
1996, its main focus had shifted to use on the Internet. It provided more interactivity with users by giving
developers a way to produce animated WebPages. Over the years it has evolved as a successful language for
use both on and off the Internet. Java is a general-purpose, concurrent, class-based, object-oriented language
that is specifically designed to have as few implementation dependencies as possible. It is intended to let
application developers "write once, run anywhere". Java is currently one of the most popular programming
languages in use, and is widely used from application software to web applications. JavaScript is an object-
oriented scripting language used to enable programmatic access to objects within both the client application
and other server applications also.
2. Simple Programming Language: There are various features that make the java as a simple language.
Programs are easy to write and debug because java does not use the pointers explicitly. Java provides the
bug free system due to the strong memory management. It also has the automatic memory allocation and
deal location system.
3. Object Oriented Programming language: To be an Object Oriented language, any language must
follow at least the four characteristics.
Inheritance : It is the process of creating the new classes and using the behavior of the
existing classes by extending them just to reuse the existing code and adding the additional features
as needed.
Encapsulation: : It is the mechanism of combining the information and providing the
abstraction.
8
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
Polymorphism: : As the name suggest one name multiple form, Polymorphism is the way of
providing the different functionality by the functions having the same name based on the
signatures of the methods.
Dynamic binding : Sometimes we don't have the knowledge of objects about their specific types
while writing our code. It is the way of providing the maximum functionality to a program about the
specific type at runtime.
4. Robust: Java has the strong memory allocation and automatic garbage collection mechanism. It
provides the powerful exception handling and type checking mechanism as compare to other programming
languages. Compiler checks the program whether there any error and interpreter checks any run time error
and makes the system secure from crash. All of the above features makes the java language robust.
5. Distributed:The widely used protocols like HTTP and FTP are developed in java. Internet
programmers can call functions on these protocols and can get access the files from any remote machine on
the internet rather than writing codes on their local system.
6. Portable :The feature Write-once-run-anywhere makes the java language portable provided that the
system must have interpreter for the JVM. Java also has the standard data size irrespective of operating
system or the processor. These features make the java as a portable language.
7. Secure:Java does not use memory pointers explicitly. All the programs in java are run under an area
known as the sand box. Security manager determines the accessibility options of a class like reading and
writing a file to the local disk. Java uses the public key encryption system to allow the java applications to
transmit over the internet in the secure encrypted form. The bytecode Verifier checks the classes after
loading.
4. ASP.NET:
ASP.NET stands for Active Server Pages Network. ASP.NET is a server-side technology for developing
Web applications based on the Microsoft .NET Framework. According to Microsoft Corporation
"ASP.NET is a technology for building powerful, dynamic Web applications and is part of the .NET
Framework". For years now, Active Server Pages (ASP) has been arguably the leading choice for Web
developers building dynamic Websites on Windows Web servers. ASP has gained popularity by offering
the simplicity of flexible scripting via several languages. That, combined with the fact that it’s built into
every Microsoft Windows-based Web server, has made ASP a difficult act to follow. Early in 2002,
Microsoft released its new technology for Internet development. Originally called ASP+, it was finally
released as ASP.NET, and represents a leap forward from ASP both in sophistication and productivity for
the developer. It continues to offer flexibility in terms of the languages it supports, but instead of a range
of simple scripting languages, developers can now choose between several fully-fledged programming
languages. Development in ASP.NET requires not only an understanding of HTML and Web design, but
also a firm grasp of the concepts of object-oriented programming and development. . The file of ASP.NET
has extension “.aspx”. . It would be perfectly possible to write ASP.NET code in Notepad, and use the
commandline compiler included with the .NET framework. ASP.NET is language independent, which
means we can use any ASP.NET supported language to make .NET applications.In the Client side
ASP.NET programming there supported by the like Java Script,VB script, Html etc. In the Server
side ASP.NET programming there supported by the,JSP, programming C#,VB.Net ASP.
9
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com
PROGRAMMING LOGIC AND TECHNIQUES
Requirements of asp.net:
1. Web server: Internet information services (IIS ). It is software which processes the web application by
integrating with ASP.NET DLLs and also provides the execution path of a web application.
2. Web browser: It is used to display the output of web application. Internet explorer for example:
3. Visual studio.net: For designing and coding.
4. Operating system: sp4(ASP:2.0) WINDOW 2000 server ,xp service pack 2,windows 2003
FEATURES OF ASP.NET:
1. Totally Object oriented.
2. Support for over 40 languages.
3. Supported by most of the browser.
4. Large set of controls( web server controls and HTML control)And user controls
5. Use of Master pages which help in easier design of web pages.(login control).
6. New set of controls for data hiding and for security.
7. Support for SQL Server 2005 express edition.
8. Web parts controls for customizing of web pages.
9. Use of file system based web sites.
10. Use of web site administration tools.
10
Prepared by: N.P.BHUSAL
Email ID: smcnpbhusl@gmail.com