Home   Introduction to PHP

Introduction to PHP

PHP is the most popular server-side language used to build dynamic websites, and though it is a very extensive language, this class will take it step-by-step.

The stateless web (HTML, CSS and JavaScript) can only do so much without a dynamic language such as PHP to add the ability to interact with the web server.

You will learn how to make your pages dynamic based upon user interaction, interacting with HTML forms and store and retrieve information from local data sources which include a database.

Objectives for this class:

  • Understand how server-side programming works on the web.
  • PHP Basic syntax for variable types and calculations.
  • Creating conditional structures
  • Storing data in arrays
  • Using PHP built-in functions and creating custom functions
  • Understanding POST and GET in form submission.
  • How to receive and process form submission data.
  • Reading and writing cookies.
  • Security tips (i.e. SQL Injection)
  • Create a database in phpMyAdmin.
  • Read and process data in a MySQL database.

Applicable Job Roles: web designer, web developer, webmaster, web application developers


 Week 1: PHP Basics

  • Setting up a development environment
  • Variables, numbers and strings
  • Calculations with PHP
  • Using Arrays

 Week 2: Control Structures and Loops

  • Conditional Statements
  • Using Loops for Repetitive tasks
  • Combing Loops and Arrays

 Week 3: Functions, Objects and Errors

  • PHP’s Built-in functions
  • Creating Custom functions
  • Passing Values by Reference
  • Understanding Objects
  • Server-side includes

 Week 4: Working with Forms

  • Building a Form
  • Processing a Form’s Data
  • Differences between POST and GET
  • Preserving User Input

 Week 5: More with Forms

  • Dealing with checkboxes and radiobuttons
  • Retrieving values from lists
  • Validating and restricting data
  • Sending Email

 Week 6: Storing and Protecting Data

  • Setting and Reading Cookies
  • Protecting Online Files
  • Understanding Session Variables

 Week 7: MySQL Database Overview

  • phpMyAdmin Overview
  • Using a MySQL Database
  • Reading and Writing Data
  • Completion of Introduction to XHTML (H401) or equivalent knowledge.
  • Completion of Introduction to CSS (H151) or equivalent knowledge.
  • Understanding of programming languages (JavaScript, ASP.NET, etc.) in other web languages would be helpful.
  • You must have an UNIX/Linux web host account that supports PHP and a MySQL database.