Have a Question? Call Us!
1.978.223.9023
info@eztrainings.com

PHP Training

Posted by admin - 15/10/09 at 02:10 am

The PHP Hypertext Preprocessor allows web developers to create dynamic content that interacts with databases. PHP applications are normally found on Linux servers and in conjunction with MySQL databases. It provides those servers with functionality similar to that provided to the Windows platform by Active Server Pages technology.

Introduction to PHP

  • History of PHP
  • Comparison with dynamic content alternatives (Perl, CGI, ASP, JSP, Servlets , CGI, etc)
  • PHP tools and set up (web browser/server, editor, libraries, etc)
  • Create a basic PHP Script
  • Taking user input (HTML forms)
  • Self Referring Forms
  • Selecting alternatives
  • Use PHP to generate HTTP headers
  • Pass PHP variables via the URL
  • Debugging Tips

Taking User Input from Forms via PHP

  • Creating forms with PHP
  • Security Protection from Cross Site Scripting
  • Using the form GET method
  • Using the form POST method
  • Obtaining data from forms through variables
  • Using hidden fields
  • Secure Web Forms (HTTPS and SSL)
  • Calling pages from themselves using forms
  • Quoting HTML entities in user input

Variables and Expressions in PHP

  • Identifiers
  • Data Types (integers, floats, strings and booleans)
  • Type juggling
  • Text constants, interpolation (strings, arrays, objects), here documents
  • Creating Variables
  • Variable assignment
  • Variable Scope
  • Namespaces
  • User-defined Constants
  • HTTP environment variables
  • Magic Constants
  • Variable References

PHP Operators

  • Arithmetic Operators
  • Logical Operators
  • Relational (Comparison) Operators
  • The Identity Operator
  • Bitwise Operators
  • Error Suppression Operator
  • Execution Operators
  • Other Operators
  • Assignment Operators
  • Operator Precedence and Associativity

PHP Configuration

  • The php.ini file
  • Module Vs CGI Usage
  • Register_globals
  • Control of error logging
  • Control of resource limits
  • Commonly set configurations
  • PHP 4.1 and above
  • PHP4 compatibility in PHP5
  • A glance at upcoming PHP6

PHP Functions

  • Purpose of functions
  • Built-in functions
  • Declaring functions
  • Functions Arguments
  • Default Arguments
  • Arguments – Call by Reference
  • Return
  • Returning References
  • Variable Scope (global vs local)
  • Static variables
  • Recursion
  • include and require
  • Variable function calls

Storing Data in Arrays using PHP

  • What are arrays?
  • How and when to use arrays
  • Indexing arrays, numeric and hashes
  • Initializing arrays
  • Using foreach
  • Add/remove elements from arrays
  • One-dimensional arrays
  • Multi-dimensional arrays
  • References to array elements
  • Arrays in forms
  • Array operators
  • Array related functions

Handling Databases with PHP

  • PHP’s database APIs
  • Error-handling strategies
  • Connection/disconnection, log in/log out
  • Escaping strings in SQL statements
  • Including common access functions
  • Doing simple SQL queries via PHP
  • Building HTML tables using SQL Queries
  • Avoiding SQL Injection attackst
  • Show access to: MySql, MySqli, Oracle & MS-SQL
  • Using PEAR DB
  • Using PHP Data Objects – PDO
  • Smart Programming

Sessions and Cookies in PHP

  • What is a session?
  • Dependencies on the php.ini file
  • Understanding PHP session variables
  • Create a PHP session variable
  • Register and modify PHP session variables
  • Putting PHP session IDs in pages
  • Good Practise with sessions and PHP
  • Cookie properties
  • Setting a cookie in PHP
  • Retrieving PHP cookies
  • Expiring/Deleting PHP cookies
  • Drawbacks to cookies
  • Using cookies well
  • Cookie Security Issues

File and Directory Access Using PHP

  • Opening files, local and remote
  • Reading and writing files
  • PHP portability on different Operating Systems
  • Handling file permissions
  • Handling file ownership
  • File locking
  • Opening and reading directories
  • File uploads from the browser/user

Object Orientation in PHP

  • Object basics
  • Classes in PHP
  • PHP4 – constructors
  • PHP5 – constructors and destructors
  • Inheritance
  • Accessing instance data and functions
  • __sleep and __wakeup
  • Class constants
  • PHP5 OO Additions
  • Objects: Assignments and References
  • Try throw catch Exception handling

PEAR, PECL and Smarty

  • PECL quick tour
  • APC – Alternative PHP Cache
  • Xdebug – debugging and profiling
  • PEAR installation and quick tour
  • PEAR Config
  • PEAR Log
  • PEAR Auth
  • PEAR HTML_Quickform
  • Smarty Templates
  • Smarty and HTML_Quickform
  • Smarty and Quickform help with security

Graphics in PHP

  • Graphics basics, referencing a PHP scrip in an IMG tag
  • Image MIME type
  • Basic examples, line/box drawing
  • Creation from an existing image
  • Image copying and resizing
  • Drawing text on images
  • True Type fonts


Bookmark and Share


Leave a Reply