PHP Programming

PHP is a popular scripting language for creating dynamic web sites, and is widely used in many major commercial web sites in industry.

This course describes now PHP fits in to the 'LAMP' stack of open-source technologies (Linux, Apache, MySQL, and PHP), and then gets you to up to speed developing data-driven web applications using PHP and MySQL. We explore PHP syntax and techniques in detail, and show how this dovetails with MySQL to interact with back-end databases.


4 days



  • Experience in HTML and/or XML
  • Familiarity with database design and OO beneficial

What you'll learn

  • Understanding the LAMP platform
  • Writing PHP script to create dynamic web pages
  • Working with text, regular expressions, and XML
  • Using MySQL to interact with databases
  • Writing object-oriented PHP code
  • Working with web services

Course details

Understanding the LAMP Architecture

  • Overview of LAMP technologies
  • Installing Apache, PHP, and MySQL
  • Getting ready to develop

PHP Language Fundamentals

  • Overview of core PHP syntax rules
  • Data types and variables
  • Constants
  • Flow control

Working with Functions

  • The benefit of functions
  • Writing and calling functions
  • Passing parameters

Working with Strings and Arrays

  • String manipulation
  • Creating arrays
  • Iterating over arrays
  • Using regular expressions

Working with XML

  • Overview of XML
  • Using the PHP XML parser
  • Parsing XML data
  • Creating XML data

Handling Exceptions

  • Overview of exceptions
  • Defining a custom exception handler
  • Terminating statements
  • Reporting errors

Using MySQL

  • Overview of Data Source Names (DSNs)
  • Understanding PHP Data Objects (PDO)
  • Executing SQL queries using PDOs
  • Displaying query results in a web page

Writing object-oriented PHP

  • Overview of object-oriented concepts
  • Implementing encapsulation in PHP
  • Implementing inheritance in PHP

Web services

  • Overview of web services and Ajax
  • Overview of JSON
  • Working with Web services in PHP