PHP Overview

 

This is a 1 day overview of PHP on Windows or Linux covering installation and configuration, writing command line and web based scripts, syntax and essential core. The course looks at how to work with PHP in both procedural and object oriented methods and moving on to some more useful web features and interaction with databases.

ON COMPLETION

  • Understand what PHP is and can be used for
  • Install and configure for Windows & Linux
  • Configure IIS & Apache to use PHP
  • Understand the php.ini file
  • Write command line and web scripts
  • Get to grips with the syntax and core language
  • Create and use functions and classes
  • Create and use web forms and handle data from the forms
  • Understand and use data filters
  • Work with cookies and sessions
  • Configure and work with various databases
  • Understand and see how PDO can be used
  • Write scripts for AJAX clients
  • Create and use JSON data

WHO SHOULD ATTEND?

Anyone who wants to get up to speed with PHP to create web based applications on either Windows or Linux under IIS or Apache

COURSE WORK

Since this is a 1 day course the main focus is to impart useful information with examples and demonstrations. There are some exercises included if time allows.

PRE-REQUISITS

An understanding of HTML and JavaScript, and being able to create a web page.

DURATION: 1 DAYS

PRICE: Call for latest

1st Day: Start 9:00am - Finish 5:00pm

COURSE CONTENT

PHP on Windows & Linux

History of PHP, what it is, where it can be used and how to instal

PHP Configuration File

What is the PHP configuration file, format and layout and understand the sections

Configuring PHP for IIS & Apache

Add a handler for PHP and how to deal with errors and check that it has been configured correctly

PHP on the Command Line

How PHP can be used to write command line scripts to automate tasks

PHP for the Web

The format and layout of a PHP web file, how to check that it runs, display error messages to the browser, getting server variables

PHP Syntax, variables & arrays

Understand the sytax of a PHP script, what statements are and how to add comments, work with variable storage types

Syntax for Conditions & Loops

Work with conditional expressions and operators and control loops in PHP

Functions

Work with built-in functions to PHP, define and use your own functions and include other functions. Deal with errors and exceptions

Objects & Classes

Understand OO concepts, define your own class and use it, work with inheritance and build bigger classes

Web Forms

Use PHP to obtain data from web forms using the different methods of receiving data from the client and validate it. Work with file uploads and be able to send Emails from your application

Handling Cookies & Sessions

Understand what cookies are, create and retrieve cookie data, provide an expiry time and other attributes. Understand what a session is and be able to create and retrieve data stored in a session

Interacting With Databases

How to work with databases in PHP, configure PHP options for databases, how to connect to different databases and the functions required to work with them. Using generic methods to connect to databases through ODBC or PDO

AJAX & JSON

How to work with AJAX in PHP. Create and consume JSON data with PHP functions specific for the task

Frameworks

A quick look at some frameworks available for PHP and what they can do for you