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

Слайд 2

Uniform Resource Identifiers (URI)

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

port ] [ abs_path [ "?" query ]]

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

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

Слайд 3

PHP HTTP Head Method

Head same as GET, but only transfer the status line and header

section.

Request.

Response.

GET

Request.

Response.

HEAD

PHP HTTP Head Method Head same as GET, but only transfer the status

Слайд 4

PHP HTTP Headers

get_headers

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

response to a HTTP request.

PHP HTTP Headers get_headers get_headers() returns an array with the headers sent by

Слайд 5

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/');

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

Слайд 6

PHP HTTP Headers

header()

Refresh page with php

header("Refresh: seconds")

 

window.location.reload()

Refresh page with meta

tags

Refresh page with javascript

PHP HTTP Headers header() Refresh page with php header("Refresh: seconds") window.location.reload() Refresh page

Слайд 7

PHP HTTP Headers

Header Cache Control

PHP HTTP Headers Header Cache Control

Слайд 8

PHP URL Functions

PHP URL Functions

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