UMBC Training Centers logo

PHP Programming

 

Course Description | Course Outline | Software Development | IT Training

1. PHP Basics

 
     a. How PHP Works
     b. The php.ini File
     c. Basic PHP Syntax
           i. PHP Tags
           ii. PHP Statements and Whitespace
           iii. Comments
           iv. PHP Functions
           v. Hello World!
     d. Variables
           i. Variable Types
           ii. Variable Names (Identifiers
           iii. Type Strength
           iv. Hello Variables!
           v. Variable Scope
           vi. Superglobals
           vii. Constants
           viii. Variable-Testing and Manipulation Functions
      e. First PHP Script
      f. PHP Operators
      g. Creating Dynamic Pages
            i. Single Quotes vs. Double Quotes
            ii. Passing Variables on the URL
       h. Passing Variables via the Query String

2. Flow Control

         a. Conditional Processing
               i. If Conditions
         b. Working with Conditions
         c. Loops
               i. while
               ii. do...while
               iii. for
               iv. break and continue
         d. Working with Loops

3. Arrays

         a. Enumerated Arrays
               i. Initializing Arrays
               ii. Appending to an Array
               iii. Reading from Arrays
               iv. Looping through Arrays
         b. Working with Enumerated Arrays
         c. Associative Arrays
               i. Initializing Associative Arrays
               ii. Reading from Associative Arrays
               iii. Looping through Associative Arrays
               iv. Superglobal Arrays
         d. Working with Associative Arrays
         e. Two-dimensional Arrays
               i. Reading from Two-dimensional Arrays
               ii. Looping through Two-dimensional Arrays
         f. Array Manipulation Functions

4. PHP and HTML Forms

         a. HTML Forms
               i. How HTML Forms Work
               ii. A Sample HTML Form
               iii. Form Variables
         b. Processing Form Input

5. String Manipulation

        a. Formatting Strings
               i. Concatenation
               ii. String Manipulation Functions
               iii. Examples of String Functions
         b. Working with String Manipulation Functions
         c. Magic Quotes
               i. magic_quotes_gpc
               ii. magic_quotes_runtime
               iii. Recommendation on Magic Quotes

6. Reusing Code and Writing Functions

        a. Including Files
               i. require
               ii. require_once
               iii. auto_prepend_file and auto_append_file
         b. Adding a Header and Footer
         c. User Functions
               i. Defining and Calling Functions
               ii. Default Values
               iii. Variable Scope
               iv. By Reference vs. By Value
         d. Form Processing
               i. Code Organization
         e. Form Validation and Presentation Functions

7. Managing Data

         a. Querying a Database
               i. mysqli() Overview
               ii. mysqli Methods and Properties
               iii. Inserting and Updating Records
               iv. mysqli Prepared Statements
         b. Inserting Records

8. MDB2

         a. Advantages and Disadvantages of MDB2
               i. Why use a database abstraction layer?
               ii. When not to use a database abstraction layer?
         b. Using MDB2
         c. Creating a Customer Report

9. Authentication with PHP and SQL

         a. A Database-less Login Form
         b. Authenticating Users

10. Regular Expressions

         a. Perl-compatible Regular Expression Functions
               i. preg_match()
               ii. preg_replace()
               iii. Regular Expression Tester
         b. Regular Expression Syntax
               i. Start and End ( ^ $ )
               ii. Number of Occurrences ( ? + * {} )
               iii. Common Characters ( . \d \D \w \W \s \S )
               iv. Grouping ( [] )
               v. Negation ( ^ )
               vi. Subpatterns ( () )
               vii. Alternatives ( | )
               viii. Escape Character ( \ )
         c. Form Validation Functions with Regular Expressions

11. Session Control and Cookies

        a. Sessions
               i. Configuring Sessions
               ii. Session Functions
         b. Cookies
         c. Authentication with Session Control

12. Sending Email with PHP

         a. mail()
               i. Shortcomings of mail()
         b. PHPMailer
         c. Sending a Password by Email

13. File System Management

         a. Opening a File
               i. fopen()
         b. Reading from a File
               i. fgets()
         c. Writing to a File
               i. fwrite()
         d. Writing to a File
         e. File Locking
               i. flock()
         f. Uploading Files via an HTML Form
         g. Getting File Information
         h. More File Functions
         i. Directory Functions
               i. Getting a Directory Listing
         j. Creating a Resume Management Page