PHP. (Lesson 7) презентация

Слайд 2

Uniform Resource Identifiers (URI) PHP HTTP Parameters URI = "http:"

Uniform Resource Identifiers (URI)

PHP HTTP Parameters
URI = "http:" "//" host

[ ":" port ] [ abs_path [ "?" query ]]

http://example.com/home?view=some_view&cid=1

Слайд 3

PHP HTTP Head Method Head same as GET, but only

PHP HTTP Head Method

Head same as GET, but only transfer the status

line and header section.

Request.

Response.

GET

Request.

Response.

HEAD

Слайд 4

PHP HTTP Headers get_headers get_headers() returns an array with the

PHP HTTP Headers

get_headers

get_headers() returns an array with the headers sent by the

server in response to a HTTP request.
Слайд 5

PHP HTTP Headers header() The header() function sends a raw

PHP HTTP Headers

header()

The header() function sends a raw HTTP header to a

client.
It is important to notice that header() must be called before any actual output is sent.

header('Location: http://www.example.com/');

Слайд 6

PHP HTTP Headers header() Refresh page with php header("Refresh: seconds")

PHP HTTP Headers

header()

Refresh page with php

header("Refresh: seconds")

 

window.location.reload()

Refresh page

with meta tags

Refresh page with javascript

Слайд 7

PHP HTTP Headers Header Cache Control

PHP HTTP Headers

Header Cache Control

Слайд 8

PHP URL Functions

PHP URL Functions

Имя файла: PHP.-(Lesson-7).pptx
Количество просмотров: 37
Количество скачиваний: 0