How Browser and server works

17
Slide 1 of 38 What is PHP 19 Feb 2014 Sumeet Singh stepconsultancy.in [email protected]

Transcript of How Browser and server works

Page 1: How Browser and server works

Slide 1 of 38

What is PHP19 Feb 2014

Sumeet Singh

stepconsultancy.in

[email protected]

Page 2: How Browser and server works

Slide 2 of 38What is PHP?

PHP: Hypertext preprocessor Server-side scripting language

(has to be run on a server, not in your browser)

Open source and free to download(this means that the code behind PHP is freely available - this often means PHP hosting is cheaper than other platforms, such as ASP)

Particularly suitable for web development.

Page 3: How Browser and server works

Slide 3 of 38How web servers work

So what makes PHP dynamic? Web servers and user agents (browsers) work

in what's called a 'client-server' relationship. The user agent (browser) sends a request to

the web server The web server interprets that request, and

sends a response to the web server

Page 4: How Browser and server works

Slide 4 of 38 What is Server

This is your server

Page 5: How Browser and server works

Slide 5 of 38Broser to Web Server

Page 6: How Browser and server works

Slide 6 of 38

Server Process Php

• An HTML file can contain HTML tags, text and scripts.

• Server-side scripting is about "programming" the behavior of the server. This is called server-side scripting or server scripting.

• Client-side scripting is about "programming" the behavior of the browser.

• Normally, when a browser requests an HTML file, the server returns the file. However, if the file contains PHP, the script is executed on the server before the file is returned to the browser as plain HTML.

Page 7: How Browser and server works

Slide 7 of 382 browser with 1 server

Page 8: How Browser and server works

Slide 8 of 38Online Server

Page 9: How Browser and server works

Slide 9 of 38

What Browser Do &What Server Do???

Page 10: How Browser and server works

Slide 10 of 38

How php execute and output only HTML

Page 11: How Browser and server works

Slide 11 of 38

Page 12: How Browser and server works

Slide 12 of 38

Page 13: How Browser and server works

Slide 13 of 38

Page 14: How Browser and server works

Slide 14 of 38Server

++1.Wamp2.Xamp

Page 15: How Browser and server works

Slide 15 of 38About Xamp or Wamp

• Xamp was originally designed as a development application, so that people could test their scripts, codes and websites on their own computers without the need of an external server using all the services needed. The application is very easy to install, just running the installer will allow you to select the services you want to run on your computer, and when to run them. Once the program is installed, you can use its Control Panel application to start, stop or manage the services with ease. It features a very useful graphic interface, but there are also powerful terminal commands you can use to manage all the services.

Page 16: How Browser and server works

Slide 16 of 38

Wamp or Xamp Looks Like when installed

Page 17: How Browser and server works

Slide 17 of 38

Xamp Server when installed It looks Like