Advanced Web Site Development - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

Advanced Web Site Development

Description:

Advanced Web Site Development. PHP. Scripting/ dynamic/ interpreted language ... In-class work. Palindrome detection. Homework. Solve two of the four problems ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 18
Provided by: randy99
Category:

less

Transcript and Presenter's Notes

Title: Advanced Web Site Development


1
  • Advanced Web Site Development

2
  • PHP
  • Scripting/
  • dynamic/
  • interpreted language

3
  • HTTP, without PHP

Request
HTTP Client software
HTTP Server software
Response
File system
Presentation
Processing
4
  • HTTP, with PHP

Request
HTTP Client software
HTTP Server software
PHP interpreter
Response
File system
Presentation
Processing
5
  • Basic PHP syntax
  • lt?php ... ?gt

6
  • Basic PHP syntax
  • one-line comment
  • // on-line comment
  • /
  • multi-line comment
  • /

7
  • Basic types (scalars)
  • Strings
  • Integers
  • Floats (double)
  • Booleans

8
  • Complex types
  • Arrays
  • Objects

9
  • Special types
  • Resources
  • NULL

10
  • Weak typing
  • 0 false 0
  • 0 ! false
  • 0 ! false
  • 0 ! 0

11
  • Variables
  • var
  • i_am_a_variable
  • me2
  • andMe_2

12
  • Control structures
  • if
  • ifelse
  • ifelseifelse
  • while
  • for
  • foreach

13
  • Functions
  • PHP probably has it built in
  • http//php.net/manual/en/funcref.php

14
  • Old standbys
  • printf()
  • substr()
  • str_replace()
  • htmlentities()
  • array_map()
  • array_key_exists()
  • in_array()

15
  • In-class work
  • Test-first development

16
  • In-class work
  • Palindrome detection

17
  • Homework
  • Solve two of the four problems
Write a Comment
User Comments (0)
About PowerShow.com