SlideShare une entreprise Scribd logo
1  sur  17
Chap 1
PHP-I
Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune) 1
What we Learn?
2Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Client Server Model
3Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Client Server Model
1. In client-server model, computer runs
software called the client(web browser) and it interacts
with another software called server(web server) located at
a remote computer.
2. The client is usually a browser such as Internet
Explorer, Netscape Navigator or Mozilla. Browsers
interact with the server using a set of instructions called
protocols.
3. These protocols help in the accurate transfer of data
through http requests from a web browser and responses
from the web server .
4Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Client Server Model
4. The World Wide Web(WWW), which is a part of the
Internet, brings all these protocols together. we can,
use HTTP, FTP, Telnet etc. from one platform -
your & so on protocols on our web browser.
Internet protocols:
HTTP (HyperText transfer Protocol): used on the World
Wide Web (WWW) for transferring web pages and files
contained in web pages such as images.
FTP (File Transfer protocol): employed for transferring
files from one machine to the other.
SMTP (Simple Mail Transport Protocol): used to send
emails
Telnet Protocol: Used to open telnet sessions. 5
Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
For Static HTML page generation
The client (browser) requests for an HTML file stored
on the remote machine through the server software. The
server locate this file and passes it to the client. The
client then displays this file on your machine. In this
case, the HTML page is static. Static pages do not
change until the developer modifies them.or supportive
language required to convert it to dynamic.
6Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
For server side scripting /dynamic page
With server technologies like PHP, JSP it has become easier to
maintain Web pages especially helpful for a large web sites.
A request sent for a PHP page from a client is passed to the PHP
interpreter by the server along with various program variables.
The interpreter then processes the PHP code and generates a
dynamic HTML output. This is sent to the server which in turn
redirects it to the client. The browser is not aware of the
functioning of the server. It just receives the HTML code, which
it appropriately formats and displays on your computer.
7
Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Http Basics: Http Protocol
1. Web servers and web browsers communicate via
HTTP.
2. The web browser (or client) makes a request of a
webpage to the server, and the webserver passes the
page back to the browser.
8Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Web Server
Types:-
1. Application server
2. FTP server
3. Backup Server
4. Security Server
5. Web Server
6. File Server
7. Database Server
Web Server-is computer that runs program responsible for
accepting HTTP request from web browser & generating
HTTP response accordingly.
Ex.of web server
1. Apache web server
2. Linux server
3. IIS web server
4. SSL web server
5. WAMP windows server 9Monica Deshmane(Asst.Professor @ Haribhai
V.Desai College,Pune)
Web browser
How web browser interacts with web server?
1. A web browser is a software application for retrieving,
presenting, and traversing information resources on the
World Wide Web.
2. An information resource is identified by a Uniform
Resource Identifier (URI) and may be a web page,
image, video, or other piece of content.
3. Hyperlinks present in resources enable users easily to
navigate their browsers to related resources.
EX. The major web browsers are Internet Explorer,
Firefox, Google Chrome, Apple Safari, and Opera.
10Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Http Protocol – How it works?
1. Parsing the URL
URL’s basic form: "protocol://server/request-URI".
Parts of url:
protocol: describes how to tell the server which
document the you want and how to retrieve it.
server: tells the browser which server to contact.
request-URI: is the name used by the web
server to identify the document.
Ex.
$url=“http://google.co.in”;
$arr=parse_url($url);
foreach($arr as $k=>$v)
echo $k,$v;
11Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Http Protocol – How it works?
2. Sending the request
Usually, the protocol is "http". To retrieve a
document via HTTP the browser transmits the
following request to the server:
"GET /request-URI HTTP/version",
version tells the server which HTTP version is used.
Server performs the request and returns the result.
12Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Http Protocol – How it works?
3. The server response
When the server receives the HTTP request it
locates the appropriate document and returns it.
HTTP/[VER] [CODE] [TEXT]
Ex.http/1.0 200 OK
The line shows the HTTP version used,
followed by a three-digit HTTP status code. Usually
the code is 200 and the phrase "OK“ for successful
response .
The first line is followed by some lines called the
header, which contains information about the document.
The header ends with a blank line, followed by the
document content.
13Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Http Protocol – How it works?
This is a typical header:
HTTP/1.0 200 OK
Server: Netscape-Communications/1.1
Date: Tuesday, 25-Nov-97 01:22:04 GMT
Last-modified: Thursday, 20-Nov-97 10:44:53 GMT
Content-length: 6372
Content-type: text/html
//followed by document content...
14
Monica Deshmane(Asst.Professor @ Haribhai
V.Desai College,Pune)
2 tier and 3 tier architecture
Any piece of software can be subdivided into the
following areas:
Presentation logic : User Interface, displaying data to
the user, accepting input from the user.
Business logic : Business Rules, handles data
validation and task-specific behavior.
Data Access logic : Database Communication,
constructing SQL queries and executing them via the
relevant API.
15
Monica Deshmane(Asst.Professor @ Haribhai
V.Desai College,Pune)
3 tier architecture
If you go one step further and split the presentation
logic from the business logic you have a 3 Tier
Architecture.
16Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
Thank You
https://www.slideshare.net/MonicaDeshmane/client-server-architecturephp?qid=90e027e3-b31e-4571-b1a3-
929cf6667d8b&v=&b=&from_search=2
17Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)

Contenu connexe

Tendances

Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer ProtocolRajan Pandey
 
PHP Training: Module 1
PHP Training: Module 1PHP Training: Module 1
PHP Training: Module 1hussulinux
 
Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Shimona Agarwal
 
HTTP Definition and Basics.
HTTP Definition and Basics.HTTP Definition and Basics.
HTTP Definition and Basics.Halah Salih
 
Hypertex transfer protocol
Hypertex transfer protocolHypertex transfer protocol
Hypertex transfer protocolwanangwa234
 
HyperText Transfer Protocol
HyperText Transfer ProtocolHyperText Transfer Protocol
HyperText Transfer Protocolponduse
 
Lec 7(HTTP Protocol)
Lec 7(HTTP Protocol)Lec 7(HTTP Protocol)
Lec 7(HTTP Protocol)maamir farooq
 
Http and its Applications
Http and its ApplicationsHttp and its Applications
Http and its ApplicationsNayan Dagliya
 
HTTP fundamentals for developers
HTTP fundamentals for developersHTTP fundamentals for developers
HTTP fundamentals for developersMario Cardinal
 
Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)johnny19910916
 
HTTP Protocol Basic
HTTP Protocol BasicHTTP Protocol Basic
HTTP Protocol BasicChuong Mai
 

Tendances (20)

Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
 
HTTP
HTTPHTTP
HTTP
 
PHP Training: Module 1
PHP Training: Module 1PHP Training: Module 1
PHP Training: Module 1
 
HTTP
HTTPHTTP
HTTP
 
HTTP & WWW
HTTP & WWWHTTP & WWW
HTTP & WWW
 
Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
 
HTTP Definition and Basics.
HTTP Definition and Basics.HTTP Definition and Basics.
HTTP Definition and Basics.
 
Http
HttpHttp
Http
 
Hypertex transfer protocol
Hypertex transfer protocolHypertex transfer protocol
Hypertex transfer protocol
 
HyperText Transfer Protocol
HyperText Transfer ProtocolHyperText Transfer Protocol
HyperText Transfer Protocol
 
Lec 7(HTTP Protocol)
Lec 7(HTTP Protocol)Lec 7(HTTP Protocol)
Lec 7(HTTP Protocol)
 
Http and its Applications
Http and its ApplicationsHttp and its Applications
Http and its Applications
 
HTTP fundamentals for developers
HTTP fundamentals for developersHTTP fundamentals for developers
HTTP fundamentals for developers
 
Web technology
Web technologyWeb technology
Web technology
 
Web server
Web serverWeb server
Web server
 
Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
 
HTTP Protocol Basic
HTTP Protocol BasicHTTP Protocol Basic
HTTP Protocol Basic
 
The HTTP and Web
The HTTP and Web The HTTP and Web
The HTTP and Web
 
Http VS. Https
Http VS. HttpsHttp VS. Https
Http VS. Https
 
Http protocol
Http protocolHttp protocol
Http protocol
 

Similaire à ip1clientserver model

Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfRaghunathan52
 
Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfRaghunathan52
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side ProgrammingMilan Thapa
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Distributed web based systems
Distributed web based systemsDistributed web based systems
Distributed web based systemsReza Gh
 
Web application development ( basics )
Web application development ( basics )Web application development ( basics )
Web application development ( basics )Chirag Nag
 
Web Programming HTML.pptx
Web Programming HTML.pptxWeb Programming HTML.pptx
Web Programming HTML.pptxMarwaAnany1
 
MADS4007_Fall2022-Intro to Web Technologies.docx.pptx
MADS4007_Fall2022-Intro to Web Technologies.docx.pptxMADS4007_Fall2022-Intro to Web Technologies.docx.pptx
MADS4007_Fall2022-Intro to Web Technologies.docx.pptxawadalsabbah
 

Similaire à ip1clientserver model (20)

Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdf
 
Web Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdfWeb Technologies Notes - TutorialsDuniya.pdf
Web Technologies Notes - TutorialsDuniya.pdf
 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptx
 
Www and http
Www and httpWww and http
Www and http
 
CN UNIT V.pptx
CN UNIT V.pptxCN UNIT V.pptx
CN UNIT V.pptx
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side Programming
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Distributed web based systems
Distributed web based systemsDistributed web based systems
Distributed web based systems
 
Apache web server
Apache web serverApache web server
Apache web server
 
Internet
InternetInternet
Internet
 
Web application development ( basics )
Web application development ( basics )Web application development ( basics )
Web application development ( basics )
 
Spider Course Day 1
Spider Course Day 1Spider Course Day 1
Spider Course Day 1
 
WP Chap 1 & 2.pptx
WP Chap 1 & 2.pptxWP Chap 1 & 2.pptx
WP Chap 1 & 2.pptx
 
Web Programming HTML.pptx
Web Programming HTML.pptxWeb Programming HTML.pptx
Web Programming HTML.pptx
 
MADS4007_Fall2022-Intro to Web Technologies.docx.pptx
MADS4007_Fall2022-Intro to Web Technologies.docx.pptxMADS4007_Fall2022-Intro to Web Technologies.docx.pptx
MADS4007_Fall2022-Intro to Web Technologies.docx.pptx
 
Webbasics
WebbasicsWebbasics
Webbasics
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
unit 1(chapter1).pdf
unit 1(chapter1).pdfunit 1(chapter1).pdf
unit 1(chapter1).pdf
 
Web server
Web serverWeb server
Web server
 

Plus de monikadeshmane

Plus de monikadeshmane (20)

File system node js
File system node jsFile system node js
File system node js
 
Nodejs functions & modules
Nodejs functions & modulesNodejs functions & modules
Nodejs functions & modules
 
Nodejs buffers
Nodejs buffersNodejs buffers
Nodejs buffers
 
Intsllation & 1st program nodejs
Intsllation & 1st program nodejsIntsllation & 1st program nodejs
Intsllation & 1st program nodejs
 
Nodejs basics
Nodejs basicsNodejs basics
Nodejs basics
 
Chap 5 php files part-2
Chap 5 php files   part-2Chap 5 php files   part-2
Chap 5 php files part-2
 
Chap 5 php files part 1
Chap 5 php files part 1Chap 5 php files part 1
Chap 5 php files part 1
 
Chap4 oop class (php) part 2
Chap4 oop class (php) part 2Chap4 oop class (php) part 2
Chap4 oop class (php) part 2
 
Chap4 oop class (php) part 1
Chap4 oop class (php) part 1Chap4 oop class (php) part 1
Chap4 oop class (php) part 1
 
Chap 3php array part4
Chap 3php array part4Chap 3php array part4
Chap 3php array part4
 
Chap 3php array part 3
Chap 3php array part 3Chap 3php array part 3
Chap 3php array part 3
 
Chap 3php array part 2
Chap 3php array part 2Chap 3php array part 2
Chap 3php array part 2
 
Chap 3php array part1
Chap 3php array part1Chap 3php array part1
Chap 3php array part1
 
PHP function
PHP functionPHP function
PHP function
 
php string part 4
php string part 4php string part 4
php string part 4
 
php string part 3
php string part 3php string part 3
php string part 3
 
php string-part 2
php string-part 2php string-part 2
php string-part 2
 
PHP string-part 1
PHP string-part 1PHP string-part 1
PHP string-part 1
 
java script
java scriptjava script
java script
 
Chap1introppt2php(finally done)
Chap1introppt2php(finally done)Chap1introppt2php(finally done)
Chap1introppt2php(finally done)
 

Dernier

Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...D. B. S. College Kanpur
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfSELF-EXPLANATORY
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationColumbia Weather Systems
 
Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)Tamer Koksalan, PhD
 
Forensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptxForensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptxkumarsanjai28051
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptJoemSTuliba
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Topic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxTopic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxJorenAcuavera1
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubaikojalkojal131
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPirithiRaju
 
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptxECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptxmaryFF1
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.PraveenaKalaiselvan1
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRlizamodels9
 
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTXALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTXDole Philippines School
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)riyaescorts54
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPirithiRaju
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝soniya singh
 

Dernier (20)

Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather Station
 
Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)
 
Forensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptxForensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptx
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.ppt
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Topic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxTopic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptx
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
 
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptxECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
 
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTXALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
 

ip1clientserver model

  • 1. Chap 1 PHP-I Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune) 1
  • 2. What we Learn? 2Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 3. Client Server Model 3Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 4. Client Server Model 1. In client-server model, computer runs software called the client(web browser) and it interacts with another software called server(web server) located at a remote computer. 2. The client is usually a browser such as Internet Explorer, Netscape Navigator or Mozilla. Browsers interact with the server using a set of instructions called protocols. 3. These protocols help in the accurate transfer of data through http requests from a web browser and responses from the web server . 4Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 5. Client Server Model 4. The World Wide Web(WWW), which is a part of the Internet, brings all these protocols together. we can, use HTTP, FTP, Telnet etc. from one platform - your & so on protocols on our web browser. Internet protocols: HTTP (HyperText transfer Protocol): used on the World Wide Web (WWW) for transferring web pages and files contained in web pages such as images. FTP (File Transfer protocol): employed for transferring files from one machine to the other. SMTP (Simple Mail Transport Protocol): used to send emails Telnet Protocol: Used to open telnet sessions. 5 Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 6. For Static HTML page generation The client (browser) requests for an HTML file stored on the remote machine through the server software. The server locate this file and passes it to the client. The client then displays this file on your machine. In this case, the HTML page is static. Static pages do not change until the developer modifies them.or supportive language required to convert it to dynamic. 6Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 7. For server side scripting /dynamic page With server technologies like PHP, JSP it has become easier to maintain Web pages especially helpful for a large web sites. A request sent for a PHP page from a client is passed to the PHP interpreter by the server along with various program variables. The interpreter then processes the PHP code and generates a dynamic HTML output. This is sent to the server which in turn redirects it to the client. The browser is not aware of the functioning of the server. It just receives the HTML code, which it appropriately formats and displays on your computer. 7 Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 8. Http Basics: Http Protocol 1. Web servers and web browsers communicate via HTTP. 2. The web browser (or client) makes a request of a webpage to the server, and the webserver passes the page back to the browser. 8Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 9. Web Server Types:- 1. Application server 2. FTP server 3. Backup Server 4. Security Server 5. Web Server 6. File Server 7. Database Server Web Server-is computer that runs program responsible for accepting HTTP request from web browser & generating HTTP response accordingly. Ex.of web server 1. Apache web server 2. Linux server 3. IIS web server 4. SSL web server 5. WAMP windows server 9Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 10. Web browser How web browser interacts with web server? 1. A web browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web. 2. An information resource is identified by a Uniform Resource Identifier (URI) and may be a web page, image, video, or other piece of content. 3. Hyperlinks present in resources enable users easily to navigate their browsers to related resources. EX. The major web browsers are Internet Explorer, Firefox, Google Chrome, Apple Safari, and Opera. 10Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 11. Http Protocol – How it works? 1. Parsing the URL URL’s basic form: "protocol://server/request-URI". Parts of url: protocol: describes how to tell the server which document the you want and how to retrieve it. server: tells the browser which server to contact. request-URI: is the name used by the web server to identify the document. Ex. $url=“http://google.co.in”; $arr=parse_url($url); foreach($arr as $k=>$v) echo $k,$v; 11Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 12. Http Protocol – How it works? 2. Sending the request Usually, the protocol is "http". To retrieve a document via HTTP the browser transmits the following request to the server: "GET /request-URI HTTP/version", version tells the server which HTTP version is used. Server performs the request and returns the result. 12Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 13. Http Protocol – How it works? 3. The server response When the server receives the HTTP request it locates the appropriate document and returns it. HTTP/[VER] [CODE] [TEXT] Ex.http/1.0 200 OK The line shows the HTTP version used, followed by a three-digit HTTP status code. Usually the code is 200 and the phrase "OK“ for successful response . The first line is followed by some lines called the header, which contains information about the document. The header ends with a blank line, followed by the document content. 13Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 14. Http Protocol – How it works? This is a typical header: HTTP/1.0 200 OK Server: Netscape-Communications/1.1 Date: Tuesday, 25-Nov-97 01:22:04 GMT Last-modified: Thursday, 20-Nov-97 10:44:53 GMT Content-length: 6372 Content-type: text/html //followed by document content... 14 Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 15. 2 tier and 3 tier architecture Any piece of software can be subdivided into the following areas: Presentation logic : User Interface, displaying data to the user, accepting input from the user. Business logic : Business Rules, handles data validation and task-specific behavior. Data Access logic : Database Communication, constructing SQL queries and executing them via the relevant API. 15 Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)
  • 16. 3 tier architecture If you go one step further and split the presentation logic from the business logic you have a 3 Tier Architecture. 16Monica Deshmane(Asst.Professor @ Haribhai V.Desai College,Pune)