Introduction to Server-Side Programming
[Pages:66]Introduction to Server-Side Programming
Charles Liu
Overview
1. Basics of HTTP 2. PHP syntax 3. Server-side programming 4. Connecting to MySQL
Request to a Static Site
HTTP Request: GET
Server: 1. Homepage
lookup 2. Send as HTTP
Response
You (client)
HTTP Response: web content (HTML file) Client-side code: HTML, CSS, JavaScript
Web server IP: 72.26.203.99
Request to a Dynamic Site
! The server must respond dynamically if it needs to provide different client-side code depending on the situation ! Date and time ! Specifics of the user's request ! Database contents ? forms and authentication
You (client)
HTTP Request: GET
Server: 1. Look up things that go on
user's profile, such as wall posts and friends "
caches, database
Web server lookups
2. Generate client-side
HTTP Response: web content (HTML file) Client-side code: HTML, CSS, JavaScript (dynamically generated by server)
code containing these things 3. Send as HTTP response
sample http interactions
> GET, data passed as query string
sample http interactions
> POST, data passed as form data
http methods
idempotent all
safe
GET HEAD
PUT DELETE
POST
> safe: no side effects > idempotent: doing twice same as once > PUT vs POST: PUT typically names a created object > PUT & DELETE used in APIs but not usually in browsers
response status codes
categories of codes > 1xx informational > 2xx success > 3xx redirect > 4xx client error > 5xx server error most common codes > 200 OK (request succeeded, resource is in message body) > 404 Not Found (resource doesn't exist) > 303 See Other (resource moved, see location header) > 500 Server Error (web app implementer messed up)
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- native json datatype support maturing sql and nosql
- advanced sql injection
- a beginners guide to consuming restful web services in sas
- maximo 76 scripting features bruno portaluri
- introduction to server side programming
- working with json in rpg scott klement
- web scraping with stanford
- web security model stanford university
- cs 142 midterm examination stanford university
- oracle forms services secure document calls
Related searches
- introduction to java programming pdf
- introduction to java programming and data structures
- introduction to java programming 10th
- introduction to java programming liang
- introduction to java programming ppt
- introduction to java programming liang pdf
- introduction to r programming pdf
- introduction to python programming pdf
- introduction to java programming 10th edition pdf
- introduction to java programming 11th pdf
- datatables server side filter
- datatables server side paging