SlideShare a Scribd company logo
1 of 49
 Blog: http://chamnapchhorn.blogspot.com/
 Twitter: http://twitter.com/chamnap
 Rails Developer
 JavaScript Developer
 Basic Web Architecture
 HTML
 URI
 HTTP
 Web Architecture Extension
 Cookie
 Database-driven Website Architecture
 AJAX
 Web Services
 XML
 JSON
 In 1989, Tim Berners-Lee
had suggested a way to let
all users, but particularly
scientists, browse each
others’ papers on the
Internet.
 He developed HTML,
URLs, and HTTP.
 The web is a two-tiered architecture.
› A web browser displays information content,
› and a web server that transfers information to the
client.
 The primary purpose is to
bring information resources
to the user.
 An application for
retrieving, presenting, and
traversing information
resources.
 The term web server or webserver can
mean one of two things:
› A computer program that accepts HTTP requests
and return HTTP responses with optional data
content.
› A computer that runs a computer program as
described above.
 Document layout
language (not a
programming
language)
 Defines structure
and appearance of
Web pages
 URLs are location dependent
 It contains four distinct parts: the protocol type,
the machine name, the directory path and the
file name.
 There are several kinds of URLs: file URLs,
FTP URLs, and HTTP URLs.
 HTTP is a request/response standard of a client
and a server.
 Typically, an HTTP client initiates a request.
 Resources to be accessed by HTTP are
identified using Uniform Resource Identifiers
(URIs).
 The request message consists of the
following:
› Request line
› Headers (Accept-Language, Accept, ….)
› An empty line
› An optional message body
 HTTP defines eight methods (sometimes
referred to as "verbs") indicating the desired
action to be performed on the identified
resource.
› HEAD
› GET
› POST
› PUT
› DELETE
› TRACE
› OPTIONS
› CONNECT
 HEAD, GET, OPTIONS and TRACE are
defined as safe (no side effects).
 POST, PUT and DELETE are intended for
actions which may cause side effects either
on the server.
 The first line of the HTTP response is called
the status line.
 The way the user agent handles the
response primarily depends on the code and
secondarily on the response headers.
 Success: 2xx
 Redirection: 3xx
 Client-Side Error: 4xx
 Server-Side Error: 5xx
 HTTP is a stateless protocol.
 Hosts do not need to retain information about
users between requests.
 Statelessness is a scalability property.
 For example, when a host needs to customize
the content of a website for a user. Solution:
› Cookies
› Sessions
› Hidden variables (when the current page is a form)
› URL encoded parameters (such as
/index.php?session_id=some_unique_session_code)
 Client request
 Server response
 CGI extends the
architecture to three-
tiers by adding a
back-end server that
provides services to
the Web server.
 JavaScript is a scripting language designed for
creating dynamic, interactive Web applications
that link together objects and resources on both
clients and servers.
› Getting your Web page to respond or react directly to
user interaction with form elements and hypertext
links
› Preprocessing data on the client before submission
to a server
› Changing content and styles
 Cookie is a small piece of text stored on a
user's computer by a web browser.
 A cookie consists of one or more name-value
pairs containing bits of information such as user
preferences.
 A cookie can be used for:
 authenticating,
 session tracking, and
 remembering specific information about users.
 Cookies expire, and are therefore not sent by
the browser to the server, under any of these
conditions:
1. At the end of the user session if the cookie is not
persistent
2. An expiration date has been specified, and has
passed
3. The expiration date of the cookie is changed to a
date in the past
4. The browser deletes the cookie by user request
 In server-side processing, the Web server:
› Receives the dynamic Web page request
› Performs all of the processing necessary to
create the dynamic Web page
› Sends the finished Web page to the client for
display in the client’s browser
 Client-side processing
› Some processing needs to be “executed” by the
browser, either to form the request for the
dynamic Web page or to create or display the
dynamic Web page.
Eg. Javascript code to validate user input
 Server-side processing
› PHP
› ASP
› ASP.NET
› Perl
› J2EE
› Python, e.g. Django
› Ruby, e.g. Ruby on
Rails
› ColdFusion
 Client-side processing
› CSS
› HTML
› JavaScript
› Adobe Flex
› Microsoft Silverlight
 Ajax isn’t a technology. It’s
really several technologies,
each flourishing in its own
right, coming together in
powerful new ways. Ajax
incorporates:
› XHTML and CSS;
› Document Object Model;
› XML and XSLT;
› XMLHttpRequest;
› JavaScript Jesse James Garrett, essay in
february 18, 2005
Ajax: A New Approach to Web
Applications
 It breaks browser history engine (Back
button).
 No bookmark.
 The same origin policy.
 Ajax opens up another attack vector for
malicious code that web developers might
not fully test for.
 Web Service is a software system designed
to support machine-to-machine interaction
over a network.
 Web services are frequently just Internet
Application Programming Interfaces (API)
that can be accessed over a network.
 Web Services are platform-independent and
language-independent, since they use standard
XML languages.
 Most Web Services use HTTP for transmitting
messages (such as the service request and
response).
 Style of Use
› RPC
› SOAP
› REST
 XML is a universally agreed markup meta-
language primarily used for information
exchange.
 The two primary building blocks of XML are
elements and attributes.
› Elements are tags and have values.
› Elements are structured as a tree.
› Alternatively, elements may have both attributes as
well as data
› Attributes help you to give more meaning and
describe your element more efficiently and clearly.
<?xml version="1.0" encoding="UTF-8"?>
<person>
<id type="integer">1111</id>
<last_name>Smith</last_name>
<first_name>John</first_name>
<address>
<city>New York</city>
<street>21 2nd Street</street>
<postal_code
type="integer">10021</postal_code>
<state>NY</state>
</address>
</person>
 JSON is a lightweight computer
data interchange format.
 JSON is based on a subset of the
JavaScript programming
language.
 It is considered to be a language-
independent data format.
 It serves as an alternative to the
use of the XML format.
Douglas Crockford is a senior
JavaScript Architect at Yahoo!
He is well known for his work in
introducing JavaScript Object
Notation (JSON).
{
"firstName": "John",
"lastName": "Smith",
"address": {
"street": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": 10021
},
"phoneNumbers": [
"212 555-1234",
"646 555-4567"
]
}
 http://gdp.globus.org/gt4-tutorial/multiplehtml/ch01s02.html
 http://www.objs.com/survey/WebArch.htm
 http://en.wikipedia.org/wiki/World_Wide_Web
 http://en.wikipedia.org/wiki/Web_browser
 http://en.wikipedia.org/wiki/Web_services
 http://en.wikipedia.org/wiki/Web_server
 http://www.slideshare.net/warlock/intro-to-web-development
 http://www.slideshare.net/rstein/advanced-web-development
 http://www.slideshare.net/hblowers/intro-to-web-20-277488
 http://www.slideshare.net/cheilmann/the-road-to-professional-web-development
 http://en.wikipedia.org/wiki/Common_Gateway_Interface
 http://www.edwardsamuels.com/ILLUSTRATEDSTORY/isc5.htm
 http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
 http://en.wikipedia.org/wiki/HTTP_cookie
 http://www.adaptivepath.com/ideas/newsletter/archives/111405/index.php
Introductiontowebarchitecture 090922221506-phpapp01

More Related Content

What's hot

What's hot (20)

Soap and restful webservice
Soap and restful webserviceSoap and restful webservice
Soap and restful webservice
 
Restful webservices
Restful webservicesRestful webservices
Restful webservices
 
internet programming and java notes 5th sem mca
internet programming and java notes 5th sem mcainternet programming and java notes 5th sem mca
internet programming and java notes 5th sem mca
 
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
 
Rest and Rails
Rest and RailsRest and Rails
Rest and Rails
 
Rest in Rails
Rest in RailsRest in Rails
Rest in Rails
 
Restful web services ppt
Restful web services pptRestful web services ppt
Restful web services ppt
 
Restful webservice
Restful webserviceRestful webservice
Restful webservice
 
REST & RESTful Web Service
REST & RESTful Web ServiceREST & RESTful Web Service
REST & RESTful Web Service
 
Web ,app and db server presentation
Web ,app and db server presentationWeb ,app and db server presentation
Web ,app and db server presentation
 
Uniform Resource Locator (URL)
Uniform Resource Locator (URL)Uniform Resource Locator (URL)
Uniform Resource Locator (URL)
 
Ds
DsDs
Ds
 
REST Presentation
REST PresentationREST Presentation
REST Presentation
 
SOAP-based Web Services
SOAP-based Web ServicesSOAP-based Web Services
SOAP-based Web Services
 
Web Services Tutorial
Web Services TutorialWeb Services Tutorial
Web Services Tutorial
 
Deep Web: Databases on the Web
Deep Web: Databases on the WebDeep Web: Databases on the Web
Deep Web: Databases on the Web
 
Www(alyssa) (2)
Www(alyssa) (2)Www(alyssa) (2)
Www(alyssa) (2)
 
RESTful web
RESTful webRESTful web
RESTful web
 
Rest & RESTful WebServices
Rest & RESTful WebServicesRest & RESTful WebServices
Rest & RESTful WebServices
 
Intoduction to php web services and json
Intoduction to php  web services and jsonIntoduction to php  web services and json
Intoduction to php web services and json
 

Similar to Introductiontowebarchitecture 090922221506-phpapp01

Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web ArchitectureChamnap Chhorn
 
Web Database
Web DatabaseWeb Database
Web Databaseidroos7
 
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMSkoolkampus
 
Fundamentals of Web for Non-Developers
Fundamentals of Web for Non-DevelopersFundamentals of Web for Non-Developers
Fundamentals of Web for Non-DevelopersLemi Orhan Ergin
 
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt20521742
 
WEB TECHNOLOGY Unit-5.pptx
WEB TECHNOLOGY Unit-5.pptxWEB TECHNOLOGY Unit-5.pptx
WEB TECHNOLOGY Unit-5.pptxkarthiksmart21
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Serverwebhostingguy
 
Web Server Hardware and Software
Web Server Hardware and SoftwareWeb Server Hardware and Software
Web Server Hardware and Softwarewebhostingguy
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdfZani10
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Web Landscape - updated in Jan 2016
Web Landscape - updated in Jan 2016Web Landscape - updated in Jan 2016
Web Landscape - updated in Jan 2016Jack Zheng
 
Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfRaghunathan52
 

Similar to Introductiontowebarchitecture 090922221506-phpapp01 (20)

Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 
Web Database
Web DatabaseWeb Database
Web Database
 
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS
 
Fundamentals of Web for Non-Developers
Fundamentals of Web for Non-DevelopersFundamentals of Web for Non-Developers
Fundamentals of Web for Non-Developers
 
introduction to web application development
introduction to web application developmentintroduction to web application development
introduction to web application development
 
WP Chap 1 & 2.pptx
WP Chap 1 & 2.pptxWP Chap 1 & 2.pptx
WP Chap 1 & 2.pptx
 
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
 
Ch-1_.ppt
Ch-1_.pptCh-1_.ppt
Ch-1_.ppt
 
WEB TECHNOLOGY Unit-5.pptx
WEB TECHNOLOGY Unit-5.pptxWEB TECHNOLOGY Unit-5.pptx
WEB TECHNOLOGY Unit-5.pptx
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
 
Web Server Hardware and Software
Web Server Hardware and SoftwareWeb Server Hardware and Software
Web Server Hardware and Software
 
Web Browsers.pptx
Web Browsers.pptxWeb Browsers.pptx
Web Browsers.pptx
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf
 
Html
HtmlHtml
Html
 
Jax Ajax Architecture
Jax Ajax  ArchitectureJax Ajax  Architecture
Jax Ajax Architecture
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Web Landscape - updated in Jan 2016
Web Landscape - updated in Jan 2016Web Landscape - updated in Jan 2016
Web Landscape - updated in Jan 2016
 
Web servers
Web serversWeb servers
Web servers
 
Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdf
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 

Recently uploaded (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

Introductiontowebarchitecture 090922221506-phpapp01

  • 1.
  • 2.  Blog: http://chamnapchhorn.blogspot.com/  Twitter: http://twitter.com/chamnap  Rails Developer  JavaScript Developer
  • 3.  Basic Web Architecture  HTML  URI  HTTP  Web Architecture Extension  Cookie  Database-driven Website Architecture  AJAX  Web Services  XML  JSON
  • 4.
  • 5.  In 1989, Tim Berners-Lee had suggested a way to let all users, but particularly scientists, browse each others’ papers on the Internet.  He developed HTML, URLs, and HTTP.
  • 6.
  • 7.  The web is a two-tiered architecture. › A web browser displays information content, › and a web server that transfers information to the client.
  • 8.  The primary purpose is to bring information resources to the user.  An application for retrieving, presenting, and traversing information resources.
  • 9.  The term web server or webserver can mean one of two things: › A computer program that accepts HTTP requests and return HTTP responses with optional data content. › A computer that runs a computer program as described above.
  • 10.
  • 11.  Document layout language (not a programming language)  Defines structure and appearance of Web pages
  • 12.
  • 13.  URLs are location dependent  It contains four distinct parts: the protocol type, the machine name, the directory path and the file name.  There are several kinds of URLs: file URLs, FTP URLs, and HTTP URLs.
  • 14.
  • 15.  HTTP is a request/response standard of a client and a server.  Typically, an HTTP client initiates a request.  Resources to be accessed by HTTP are identified using Uniform Resource Identifiers (URIs).
  • 16.  The request message consists of the following: › Request line › Headers (Accept-Language, Accept, ….) › An empty line › An optional message body
  • 17.  HTTP defines eight methods (sometimes referred to as "verbs") indicating the desired action to be performed on the identified resource. › HEAD › GET › POST › PUT › DELETE › TRACE › OPTIONS › CONNECT
  • 18.  HEAD, GET, OPTIONS and TRACE are defined as safe (no side effects).  POST, PUT and DELETE are intended for actions which may cause side effects either on the server.
  • 19.  The first line of the HTTP response is called the status line.  The way the user agent handles the response primarily depends on the code and secondarily on the response headers.  Success: 2xx  Redirection: 3xx  Client-Side Error: 4xx  Server-Side Error: 5xx
  • 20.  HTTP is a stateless protocol.  Hosts do not need to retain information about users between requests.  Statelessness is a scalability property.  For example, when a host needs to customize the content of a website for a user. Solution: › Cookies › Sessions › Hidden variables (when the current page is a form) › URL encoded parameters (such as /index.php?session_id=some_unique_session_code)
  • 21.  Client request  Server response
  • 22.
  • 23.  CGI extends the architecture to three- tiers by adding a back-end server that provides services to the Web server.
  • 24.  JavaScript is a scripting language designed for creating dynamic, interactive Web applications that link together objects and resources on both clients and servers. › Getting your Web page to respond or react directly to user interaction with form elements and hypertext links › Preprocessing data on the client before submission to a server › Changing content and styles
  • 25.
  • 26.  Cookie is a small piece of text stored on a user's computer by a web browser.  A cookie consists of one or more name-value pairs containing bits of information such as user preferences.  A cookie can be used for:  authenticating,  session tracking, and  remembering specific information about users.
  • 27.
  • 28.  Cookies expire, and are therefore not sent by the browser to the server, under any of these conditions: 1. At the end of the user session if the cookie is not persistent 2. An expiration date has been specified, and has passed 3. The expiration date of the cookie is changed to a date in the past 4. The browser deletes the cookie by user request
  • 29.
  • 30.
  • 31.  In server-side processing, the Web server: › Receives the dynamic Web page request › Performs all of the processing necessary to create the dynamic Web page › Sends the finished Web page to the client for display in the client’s browser
  • 32.  Client-side processing › Some processing needs to be “executed” by the browser, either to form the request for the dynamic Web page or to create or display the dynamic Web page. Eg. Javascript code to validate user input
  • 33.  Server-side processing › PHP › ASP › ASP.NET › Perl › J2EE › Python, e.g. Django › Ruby, e.g. Ruby on Rails › ColdFusion  Client-side processing › CSS › HTML › JavaScript › Adobe Flex › Microsoft Silverlight
  • 34.
  • 35.  Ajax isn’t a technology. It’s really several technologies, each flourishing in its own right, coming together in powerful new ways. Ajax incorporates: › XHTML and CSS; › Document Object Model; › XML and XSLT; › XMLHttpRequest; › JavaScript Jesse James Garrett, essay in february 18, 2005 Ajax: A New Approach to Web Applications
  • 36.
  • 37.
  • 38.  It breaks browser history engine (Back button).  No bookmark.  The same origin policy.  Ajax opens up another attack vector for malicious code that web developers might not fully test for.
  • 39.
  • 40.  Web Service is a software system designed to support machine-to-machine interaction over a network.  Web services are frequently just Internet Application Programming Interfaces (API) that can be accessed over a network.
  • 41.  Web Services are platform-independent and language-independent, since they use standard XML languages.  Most Web Services use HTTP for transmitting messages (such as the service request and response).  Style of Use › RPC › SOAP › REST
  • 42.
  • 43.  XML is a universally agreed markup meta- language primarily used for information exchange.  The two primary building blocks of XML are elements and attributes. › Elements are tags and have values. › Elements are structured as a tree. › Alternatively, elements may have both attributes as well as data › Attributes help you to give more meaning and describe your element more efficiently and clearly.
  • 44. <?xml version="1.0" encoding="UTF-8"?> <person> <id type="integer">1111</id> <last_name>Smith</last_name> <first_name>John</first_name> <address> <city>New York</city> <street>21 2nd Street</street> <postal_code type="integer">10021</postal_code> <state>NY</state> </address> </person>
  • 45.
  • 46.  JSON is a lightweight computer data interchange format.  JSON is based on a subset of the JavaScript programming language.  It is considered to be a language- independent data format.  It serves as an alternative to the use of the XML format. Douglas Crockford is a senior JavaScript Architect at Yahoo! He is well known for his work in introducing JavaScript Object Notation (JSON).
  • 47. { "firstName": "John", "lastName": "Smith", "address": { "street": "21 2nd Street", "city": "New York", "state": "NY", "postalCode": 10021 }, "phoneNumbers": [ "212 555-1234", "646 555-4567" ] }
  • 48.  http://gdp.globus.org/gt4-tutorial/multiplehtml/ch01s02.html  http://www.objs.com/survey/WebArch.htm  http://en.wikipedia.org/wiki/World_Wide_Web  http://en.wikipedia.org/wiki/Web_browser  http://en.wikipedia.org/wiki/Web_services  http://en.wikipedia.org/wiki/Web_server  http://www.slideshare.net/warlock/intro-to-web-development  http://www.slideshare.net/rstein/advanced-web-development  http://www.slideshare.net/hblowers/intro-to-web-20-277488  http://www.slideshare.net/cheilmann/the-road-to-professional-web-development  http://en.wikipedia.org/wiki/Common_Gateway_Interface  http://www.edwardsamuels.com/ILLUSTRATEDSTORY/isc5.htm  http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol  http://en.wikipedia.org/wiki/HTTP_cookie  http://www.adaptivepath.com/ideas/newsletter/archives/111405/index.php