How Browser and server works

Post on 05-Jul-2015

179 views 3 download

Transcript of How Browser and server works

Slide 1 of 38

What is PHP19 Feb 2014

Sumeet Singh

stepconsultancy.in

coderphp23@gmail.com

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.

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

Slide 4 of 38 What is Server

This is your server

Slide 5 of 38Broser to Web Server

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.

Slide 7 of 382 browser with 1 server

Slide 8 of 38Online Server

Slide 9 of 38

What Browser Do &What Server Do???

Slide 10 of 38

How php execute and output only HTML

Slide 11 of 38

Slide 12 of 38

Slide 13 of 38

Slide 14 of 38Server

++1.Wamp2.Xamp

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.

Slide 16 of 38

Wamp or Xamp Looks Like when installed

Slide 17 of 38

Xamp Server when installed It looks Like