Premier Home Page

Home | Training | Solutions |Contact Us

t: +44(0)20 7729 1811

 
About Us | IT Training | Financial Training | Management Training |Delegate Information
 
 
 

Introduction to PHP

This two day intensive course will introduce you to the fundamentals of PHP and show you how to build complete applications that include the use of cookies and sessions, creating functions and arrays to use in PHP code, sending email and processing forms using PHP.


PHP Introduction - 2 days


DAY ONE

Introduction

  • PHP and how it works
  • Your first PHP page
  • Different functions: Print, Echo and Print F

Variables and identifiers

  • Working with Identifiers
  • Variables, String, Number
  • The ?here doc' function
  • The Math operators
  • Using constants
  • Concatenation
  • Shorthand operators
  • Using Expressions
  • Using variables and variable scope

Conditional statements

  • Control statements
  • Logic and relational operators
  • Using ?If', ?Else if' and ?Else'
  • Switch operator
  • Comparison operators
  • Conditional operators

Loops

  • Using the While loop
  • Break statements
  • Continue statements
  • Using ?do...while', ?for', ?foreach'

Functions

  • Creating your own functions
  • Calling a function
  • Using arguments
  • Return statements and static statements
  • Scope of variables
  • Optional arguments
  • Dynamic, built-in and data functions

 

DAY TWO

Arrays

  • Array assignments
  • Array functions

Form validation

  • Validating mandatory information
  • User friendly validation techniques
  • Using the setcookie function
  • Data functions
  • String functions

Advanced forms

  • Working with drop down menus
  • Checkboxes and radio buttons
  • Comparison functions
  • Using Strcmp()
  • Using Strcasesmp()

HTTP

  • HTTP basics
  • Headers
  • Environment variables

Cookies

  • Setting cookies
  • Reading cookies
  • Deleting cookies
  • When to use cookies

Session variables

  • Setting sessions
  • Storing session variables
  • Reading sessions
  • Deleting sessions

Email function

  • Creating auto-responder
  • Using email to accept simple on-line orders

Built in functions

  • Include()
  • Require()
  • Include_once()
  • Require_once()

Overview of MySQL

Overview of PHP and XML

Questions and answers

Microsoft Gold Partner

4 Ravey Street
London EC2A 4QP
t: +44(0)20 7729 1811
f:+44(0)20 7729 9412
information@premiercs.co.uk