This presentation includes the introductory part of the first unit of the subject "web programming using php" for the programme BSC Computer Science, fifth semester.
Size: 1002.88 KB
Language: en
Added: Jul 15, 2024
Slides: 13 pages
Slide Content
UNIT 1
WEB PROGRAMMING USING PHP
PREPARED BY,
NAFSEERA C
ASSISTANT PROFESSOR
•A web document is a collection of linked information stored on the
internet in a file.
•Web documents are often made up of multiple files and are accessed
through a URL (uniform resource locator) using an internet browser.
•They can contain any type of information, such as text, graphics,
animations, videos, and sounds.
•Web Documents are often defined as a simple HTML files.
•A webpage is a digital document that is linked to the World Wide Web and
viewable by anyone connected to the internet having a web browser.
INTRODUCTION TO WEB
DOCUMENTS
•The documents that contain fixed content is called as a static document.
• Static documents are created and stored on the server.
•The client can get a copy of the documents only.
•In other words, we can say that the content of the file is determined when the file is
created, not when it is used.
•Static Web pages never use databases.
•The user cannot change the content.
•Static documents are prepared using one of the languages which are mentioned below:
HTML (Hypertext Mark-up Language)
XML (Extensible Mark-up Language)
XHTML (Extended Hypertext Mark-up Language)
XSL (Extensible Style Language)
STATIC DOCUMENTS
•Dynamic documents are created by a web server when the browser
requests the document.
•When server receives the request, it runs an application program or script
which creates the dynamic documents. The server returns the output of
the program or script as a response to the browser that requested the
documents.
• Databases is used to generate dynamic content through queries.
•A fresh document is created for each request; the content for dynamic
documents may vary from one request to another.
•CGI(Common gateway interface) is a technology used to create and
handle the dynamic documents.
•CGI is a set of standards that defines how the content in dynamic
documents is written, how the data are input into the program, and how it
is shown. It allows programmers to use languages such as C, shell, or Perl.
DYNAMIC DOCUMENTS
•For many applications, we need a program or script to be run at the client
site. These are called as active documents.
•When a browser requests an active document, the server sends a copy of
the script or document; then, the document is run at the client.
•Java applets are used to create an active document.
•An applet is a program which is written in java on the server. It is compiled
and ready to be run.
• We can also use JavaScript to create and active documents.
ACTIVE DOCUMENTS
DOCUMENT
TYPE
ADVANTAGES DISADVANTAGES
STATIC simplicity, reliability and performance.
The browser can place a copy in a
cache on a local disk.
oInflexibility, changes are time
consuming because
they require a human to edit
the file.
DYNAMIC Ability to report current information
(current stocks, prices, current
weather conditions, current
availability of tickets for a concert)
oIncreased cost
oServer push : the server runs
the program periodically and
sends new document to the
user.
ACTIVE ability to update information
continuously.
oRequire more sophisticated
browser software and a
powerful computer system to
run the browser.
•Web programming refers to the development of web applications and
websites that are accessed over the Internet.
•Web programming involves creating web pages, web applications, and
other online content that can be displayed in a web browser.
•Server-side scripting is a programming technique for creating code that
may run software on the server side.
•Client-side scripting generates code that may be executed on the client
end without needing server-side processing.
WEB PROGRAMMING