Comparity Net

Comparity Training can provide training in creating and developing your static or dynamic web site. Together with our training partneres, we can help individual or corporate clients devlop skills in:

  • HTML
  • CSS
  • JavaScript
  • PHP
  • SQL

We also are able to develop and deliver course material for training. For more information about course material for Web Development, see 101 Courseware.

Contact us for more infomation about courses.

PHP Training

PHP is the most popular Server Scripting language. It is used to drive many of the largest web sites in the world, and is used to produce dynamic web sites, often driven by a database such as MySQL

MySQL is the most popular open source database, though by no means the only one. It is also behind many of the largest content-based web sites in the world.

This course covers the basic techniques of writing scripts in PHP. It uses modern, best practices, and encourages readable and maintainable code. It also covers the basics of working with a database. Although MySQL is used throughout the course, the material will allow you to easily switch to any of the other popular databases such as PostGreSQL and SQLite.

The PHP techniques covered include:

  • Writing Scripts
  • Including Files
  • Processing Form Data
  • Data Calculations
  • Working with Images
  • Cookies & Sessions
  • Working with Database
  • File Handling
  • Security

Course Outline

At all times, the student is encouraged to follow good design and writing principles, and the examples and exercises are clear and written in a way to facilitate further development.

Training includes comprehensive training material containing summary sections which explain key PHP concepts, and can be used later as a reference. There are also Appendices which expand on the concepts covered in the course.

The course is also available in two smaller parts.

Course Outline

Download Course Outline

  • Preparing Files
    • Renaming the Files
    • Using PHP to Print Processed Data
    • Including Files
    • A Template File
  • Forms & Email
    • Simple Form Processing
    • Re-Entrant Form Processing
    • The Real Contact Form
    • Form Validation
    • Planning for Validation
    • Checking Required Fields
    • Checking an Email Address
    • Handling the Error
    • Persisting Fields
    • Sending the Email
    • Redirecting to Another Page
  • Uploading Files
    • The Upload Form
    • Settings
    • Processing POSTed Data
    • Checking the Uploaded File
    • Checking the File Type
    • Handling the Error
    • Persisting Fields
    • Keeping the File
    • Tidying Up
  • Library and Configuration Files
    • Configuration File
    • Function Library
    • Classes and Objects as Containers of
    • Functions & Data
  • Thumbnails
    • Creating Thumbnails
    • The makeThumbnail Function
    • Loading the Original
    • Saving an Image File
    • Generating the Thumbnail
    • The Upload Page
    • Differently Shaped Thumbnails
    • The Image Gallery
  • Database
    • Database Concepts
    • Preparing the Database
    • Users
    • Tables
    • SQL
    • Important Clauses
    • SQL Functions
    • PHP
    • Using the PDO Object
  • Sessions & Logging In
    • Sessions
    • Logging In
    • The Admin Page
    • The User Table
    • Preliminaries
    • Checking Login
    • Start (& Continue) a Session
    • Session Data
    • Restricted Area
    • Logging Out
  • Adding Images
    • Preparing the Images Table
    • Including the Database Connection
    • Adding Image Data to the Table
  • File Handling
    • Preparation
    • Reading Text Files
    • Splitting the Data
    • Processing the Data
    • Copying the Image File
    • Reading a Directory
  • The Image Gallery
    • The Image Gallery
    • Outlining the Code
    • Preparing the Page
    • Gallery Page Data
    • Selecting Multiple Image Records
    • Constructing the img Elements
    • Displaying Page Information
    • Paging
    • The Paging Buttons
    • Displaying a Thumbnail
    • Using Cookies to Remember the Page
    • Displaying a Random Image
  • Managing Images
    • The Image List
    • Displaying the Image Items
    • Finishing the Page
    • The Image Editing Page
    • Editing Data
    • Deleting Data
  • Content Management
    • Blog Table
    • Pages
    • The Editing Page
    • Checking the Submitted Data
    • Inserting Articles
    • Listing Articles & Selecting
    • Deleting Articles