PHP Private Self-Paced

Introduction to PHP Training (PHP101)

Course Length: 5 days

This PHP course is designed to give you a comprehensive understanding of PHP, a powerful server-side scripting language widely used to create dynamic and interactive websites.

Introduction to PHP Training

Register or Request Training

  • Private class for your team
  • Live expert instructor
  • Online or on‑location
  • Customizable agenda
  • Proposal turnaround within 1–2 business days
Price per student
$249.75 or 5 vouchers
  • On Demand 24/7
  • Readings, Video Presentations, Exercises
  • Quizzes to knowledge check
  • Life-Time Access

Course Overview

This PHP course is designed to give you a comprehensive understanding of PHP, a powerful server-side scripting language widely used to create dynamic and interactive websites. Whether you’re new to programming or you’re looking to strengthen your PHP skills, this course will take you from the basics to more advanced concepts, providing practical knowledge you can apply directly to your work environment.

We begin with PHP Basics, which introduces you to the server-side of web development, starting with how web servers function and their role in delivering dynamic websites. You'll get acquainted with Google Chrome DevTools, specifically the Network tab for understanding status codes, and learn the ins and outs of how PHP operates, including configuring the php.ini file and writing your first PHP script. Topics such as PHP statements, whitespace, functions, and the use of php.net for documentation are covered in a way that's accessible to beginners.

The next module dives into Variables, where you'll explore variable types, naming conventions, and the concept of type juggling and type casting. You'll understand the differences between single and double quotes, how to concatenate strings, and how to pass variables through the URL. Later, you'll build on this knowledge with user-defined functions, learning to define and call functions, set default values, and distinguish between passing by reference and passing by value.

In Including Files, you’ll learn how to use require and require_once directives to manage code more efficiently by including external files. You'll also discover how to use constants and handle errors through error reporting and displaying error messages, ensuring your code is robust and less prone to failures.

The course continues with PHP Conditionals, essential for controlling the flow of your PHP programs. You’ll cover various conditional statements, such as if, if-else, and switch-case, and understand falsy values and testing for variable existence. Moreover, the course introduces the ternary and null coalescing operators to simplify your conditional expressions.

Next, you'll study Arithmetic Operators and Loops. This lesson covers arithmetic and modulus operators and introduces different looping constructs, including while, do...while, and for loops, as well as how to effectively use break and continue statements.

The module on Arrays goes into detail about different types of arrays, such as indexed, associative, and multi-dimensional arrays. You’ll learn how to initialize, append, read, and loop through these arrays, in addition to using built-in array manipulation functions.

In Working with Databases, you'll be guided through the concepts of objects, attributes, behaviors, and classes, and learn how to connect to a database using PDO. You'll practice querying records, adding pagination, and implementing sorting and filtering right within your PHP scripts, using a sample Poetree database for hands-on experience.

The course also includes a comprehensive look at Exception Handling. You'll learn how to manage uncaught exceptions, throw and catch custom exceptions, and handle errors specifically related to database operations with PDOExceptions.

PHP and HTML Forms covers how to handle HTML form submissions securely, by sanitizing and validating form data. You’ll explore methods such as htmlspecialchars(), htmlentities(), and filter_var(), ensuring user input is safe and reliable.

The lesson on Sending Email with PHP introduces you to the built-in mail() function and the more advanced PHPMailer library. You’ll set up a mail server and use PHPMailer to send emails, including creating a contact form and customizing email methods and properties.

Next, the module on Authentication with PHP and SQL teaches you how to create a secure registration and login system using sessions and cookies. You’ll also cover password management, implementing form-based authentication, and handling session variables.

The hands-on Lab focuses on inserting, updating, and deleting poems in the Poetree database, giving you real-world experience with CRUD operations within a PHP environment.

The final lesson on Uploading Files shows you how to handle file uploads through HTML forms, including resizing images and uploading profile pictures, to complete your PHP toolkit.

By the end of this course, you’ll have a firm grasp of PHP fundamentals and the ability to build dynamic, server-side web applications. You’ll be equipped with practical skills to make your web projects more interactive and responsive, laying a strong foundation for further PHP or full-stack development endeavors.

Course Benefits

  • Learn how PHP works.
  • Learn the basic syntax of PHP.
  • Learn to create dynamic interactive pages with PHP.
  • Learn to handle exceptions in PHP.
  • Learn to work with arrays in PHP.
  • Learn to process and validate forms with PHP.
  • Learn to write functions in PHP.
  • Learn to manipulate and manage database data with PHP.
  • Learn to manage sessions and cookies with PHP.
  • Learn to create a complete and secure registration process with PHP.
  • Learn to send email with PHPMailer.
  • Learn to upload files with PHP.

Delivery Methods

Private Class
Delivered for your team at your site or online.
Self-Paced
Learn at your own pace with 24/7 access.

Course Outline

  1. PHP Basics
    1. Welcome to the Server-side
      1. What is a web server?
      2. Dynamic Websites
    2. Google Chrome DevTools: Network Tab
      1. Status Codes
    3. How PHP Works
      1. The php.ini File
      2. PHP Tags
      3. Hello, World!
    4. Comments
    5. PHP Statements and Whitespace
    6. PHP Functions
    7. php.net
    8. Variables
      1. Variable Types
      2. Variable Names (Identifiers)
      3. Type Juggling and Casting
      4. Hello Variables!
    9. Variable Scope
    10. Superglobals
    11. Single Quotes vs. Double Quotes
    12. Concatenation
    13. Passing Variables on the URL
    14. User-defined Functions (UDFs)
      1. Defining and Calling Functions
      2. Default Values
      3. Variable Scope
      4. By Reference vs. By Value
    15. Introduction to the Poet Tree Club
    16. Including Files
      1. require
      2. require_once
    17. Constants
    18. Error Reporting
    19. Displaying Errors
    20. Including a Secure Configuration File
  2. PHP Conditionals
    1. if / if - else / if - elseif - else
      1. Simple if Condition
      2. if-else Condition
      3. if-elseif-else statement
      4. False Equivalents: Falsy Values
    2. Testing for Variable Existence
    3. Exercise: Checking for Variable Existence
    4. switch/case
    5. Ternary Operator
    6. Null Coalescing Operator
  3. Arithmetic Operators and Loops
    1. Arithmetic Operators
    2. The Modulus Operator
    3. Loops
      1. while
      2. do...while
      3. for
      4. break and continue
  4. Arrays
    1. Indexed Arrays
      1. Initializing Arrays
      2. Appending to an Array
      3. Reading from Arrays
      4. Looping through Arrays
    2. Associative Arrays
      1. Initializing Associative Arrays
      2. Reading from Associative Arrays
      3. Looping through Associative Arrays
      4. Superglobal Arrays
    3. Multi-dimensional Arrays
      1. Reading from Two-dimensional Arrays
      2. Looping through Two-dimensional Arrays
      3. Two-dimensional Associative Arrays
      4. Non-tabular Multi-dimensional Arrays
    4. Array Manipulation Functions
    5. in_array() Function
  5. Working with Databases
    1. Objects
    2. Attributes / Properties
    3. Behaviors / Methods
    4. Classes vs Objects
    5. Connecting to a Database with PDO
    6. Introducing the Poetree Database
    7. phpMyAdmin
    8. Querying Records with PHP
    9. Queries Returning Multiple Rows
    10. Creating the Poems Listings
    11. Adding Pagination
    12. Sorting
    13. Filtering
  6. Exception Handling
    1. Uncaught Exceptions
    2. Throwing Your Own Exceptions
    3. Catching Exceptions
      1. Getting Information about Exceptions
    4. PDOExceptions
    5. When Queries Fail to Execute
  7. PHP and HTML Forms
    1. HTML Forms
      1. How HTML Forms Work
    2. Form Submissions
    3. Sanitizing Form Data
      1. htmlspecialchars()
      2. htmlentities()
      3. filter_var()
      4. filter_input()
    4. Validating Form Data
      1. Was the Field Filled In?
      2. Is the Entered Value an Integer?
      3. Is it an Email?
      4. Is it a Valid Password and Do the Passwords Match?
      5. Do the Combined Values Create a Valid Date?
      6. Did the User Check the Box?
  8. Sending Email with PHP
    1. mail()
      1. Shortcomings of mail()
    2. Setting Up PHPMailer
      1. Get and Install the Latest Version of PHPMailer
    3. Mail Server
    4. Including a Mail Configuration File
    5. Sending Email with PHPMailer
    6. PHPMailer Methods and Properties
    7. Creating a Contact Form
  9. Authentication with PHP and SQL
    1. The Registration Process
    2. Passwords and Pass Phrases
    3. Registration with Tokens
    4. Creating a Registration Form
    5. Sessions and Session Variables
    6. Cookies
    7. Logging In and Out
    8. $_REQUEST Variables
    9. Resetting the Pass Phrase
  10. LAB: Inserting, Updating, and Deleting Poems
    1. Submitting a New Poem
    2. Editing an Existing Poem
    3. Deleting a Poem
  11. Uploading Files
    1. Uploading Images via an HTML Form
    2. Resizing Images
    3. Uploading a Profile Picture

Class Materials

Each student receives a comprehensive set of materials, including course notes and all class examples.

Class Prerequisites

Experience in the following is required for this PHP class:

  • HTML

Experience in the following would be useful for this PHP class:

  • CSS
  • JavaScript
  • Some SQL

Have questions about this course?

We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.