Introduction to PHP Training

Course #:WA2258

Introduction to PHP Training

This is a 4 day course where students will learn to create database-driven websites using PHP and MySQL or the database of their choice. PHP is a versatile server-side programming language that works hand-in-hand with front-end Web languages such as HTML and JavaScript. PHP can be used to create all types of dynamic web interfaces and has become one of the most widely used programming languages.

PHP is a popular general-purpose scripting language that is especially suited to web development.  PHP is used in many web applications, from wiki pages to weblogs to Facebook.


All attendees must have general familiarity with HTML and CSS.  Some database experience and/or programming experience will also be helpful.


4 days

Outline of Introduction to PHP Training

1. PHP Basics

  • How PHP Works
  • The php.ini File
  • Basic PHP Syntax
  • Variables
  • First PHP Script
  • PHP Operators
  • Creating Dynamic Pages
  • Passing Variables via the Query String

2. Flow Control

  • Conditional Processing
  • Working with Conditions
  • Loops
  • Working with Loops

3. Arrays

  • Enumerated Arrays
  • Working with Enumerated Arrays
  • Associative Arrays
  • Working with Associative Arrays
  • Two-dimensional Arrays
  • Array Manipulation Functions

4. PHP and HTML Forms

  • HTML Forms
  • Processing Form Input

5. String Manipulation

  • Formatting Strings
  • Working with String Manipulation Functions
  • Magic Quotes

6. Reusing Code and Writing Functions

  • Including Files
  • Adding a Header and Footer
  • User Functions
  • Form Processing
  • Code Organization
  • Form Validation and Presentation Functions

7. Managing Data

  • mysqli() Overview
  • mysqli Methods and Properties
  • Inserting and Updating Records
  • mysqli Prepared Statements
  • Inserting Records

8. MDB2

  • Advantages and Disadvantages of MDB2
  • Why use a database abstraction layer?
  • When not to use a database abstraction layer?
  • Using MDB2
  • Creating a Customer Report

9. Authentication with PHP and SQL

  • A database-less login form
  • Authenticating Users

10. Regular Expressions

  • Perl-compatible Regular Expression
  • Functions
  • preg_match()
  • preg_replace()
  • Regular Expression Syntax
  • Form Validation Functions with Regular Expressions

11. Session Control and Cookies

  • Sessions
  • Configuring Sessions
  • Session Functions
  • Cookies
  • Authentication with Session Control

12. Sending Email with PHP

  • mail()
  • Shortcomings of mail()
  • PHPMailer
  • Sending a Password by Email

13. File System Management

  • Opening a File
  • Reading from a File
  • Writing to a File
  • File Locking
  • Uploading Files via an HTML Form
  • Getting File Information
  • More File Functions
  • Directory Functions
  • Getting a Directory Listing
  • Creating a Resume Management Page
We regularly offer classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.