This course teaches the fundamentals of the PHP programming language. Industry best practices such as how to create maintainable, secure, efficient code is taught through the 130+ included code examples. At least half the course time is spent in the nearly 50 lab exercises. Lab time is carefully balanced between the skills of: reading code, modifying existing code, creating new code, and debugging code.
Current Version: A01
Prerequisites:
General computing knowledge is required. No programing experience needed.
Supported Distributions:
Red Hat Enterprise Linux 6
Course Outline:
- Introduction
- Course Objectives
- Advantages and Disadvantages
- Popular PHP Use Cases
- Running PHP Scripts
- Running PHP Scripts (cont.)
- Basic Syntax
- Combining Files
- Finding Mistakes
- Preparation For Later Labs
- Hello, world
- Command Line Debugging
- Web Page Debugging
- Challenge Items
- Variables & Functions
- Reading Code
- Learning To Read Code
- echo & print
- Variables
- Constants
- Functions
- Built-in Functions & Extensions
- Groceries: Part One
- Groceries: Part Two
- Exploring GD
- Dancing Squares: Part One
- Dancing Squares: Part Two
- Drawing Shapes
- Numbers & Strings
- Basic Type Conversion
- Integers & Floats
- Math Operators
- Assignment Operators
- String Literals
- Variable Substitution & Common Escapes
- String Concatenation
- printf() and sprintf()
- Numbers & Strings
- Challenge Items
- Math Operators
- printf() and sprintf()
- Calculating Tax
- Collecting Price Quotes
- Booleans & Branching
- NULL
- Booleans
- Comparison Operators
- Logical Operators
- If Statements
- Switch Statements
- Type Fun
- Boolean Fun
- Comparison Fun
- Float Fun
- How To Recognize Comedy
- CLI Calculator
- Shipping Advisor
- HTML & Templates
- Separation of Concerns
- HTML Fundamentals
- Common Block Elements
- Common Inline Elements
- CSS Fundamentals
- JavaScript Fundamentals
- Web Accessibility
- Cross-site Scripting (XSS)
- Templates Systems
- HTML Demo
- CSS Demo
- JavaScript Demo
- Story Time
- Web-based Price Quotes
- Attack of the Price Quotes
- Arrays & Scope
- Arrays As Lists
- Arrays As Maps
- Arrays As Ordered Maps
- JavaScript Object Notation (JSON)
- Working With JSON
- Variable Scope
- Replacing Branching With Arrays
- Array Fun
- Story Time: Part II
- Stock Watcher
- Rock Paper Scissors
- Exploring Scope
- Sandwich Shop
- Looping, Objects, & Exceptions
- While & Do Loops
- Foreach Loops
- For Loops
- Loop Gotchas
- break, continue, & goto
- Working With Objects
- Working With Exceptions
- Number Game
- Tic Tac Toe
- Form Creator
- Forms & Cookies
- HTTP Fundamentals
- Request Methods
- Status Codes
- Representational State Transfer (REST)
- Cookies
- Accessing Request Data
- Setting Cookies
- Sending Redirects
- Form Fundamentals
- Input Element Types
- Other Form Elements
- Input Validation
- Bots and CAPTCHAs
- Forms and Redirects
- Cookies, Forms, and Arrays
- Form Demo
- Subverting Forms
- Cookie Basics
- Subverting Cookies
- Protecting Cookies
- Contact
- Number Game
- Databases & Sessions
- Databases
- Popular SQL Databases
- Tables & Schemas
- SELECT Statements
- INSERT Statements
- UPDATE Statements
- DELETE Statements
- JOIN Clauses
- PHP & Databases
- SQL Injection
- Parameterized Statements
- PDO and Error Handling
- Storing Sensitive Data
- Sessions
- Gatekeeper
- Next Steps
- Practice, Practice, Practice
- Related Topics
- Frameworks
- Choosing a Framework
- Popular Frameworks