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.

What you will 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


  • Experience in HTML and/or XML
  • Familiarity with database design and OO would be an advantage

Course outline:

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

Andy Olsen - author of the course

Andy is a freelance consultant and instructor based in the UK, working mostly in the City of London and Oxford. Andy has been working with .NET since the Beta 1 days and has extensive experience in many facets of .NET development including WCF, WPF, WF, ASP.NET MVC Web development, and mobile applications. Andy has designed and written many Microsoft Official Curriculum courses in the last decade, and has been engaged as author and technical reviewer with Apress on some of their biggest selling books.

Other relevant courses

16. October
3 days
Classroom Virtual
18. September
3 days
Classroom Virtual
16. October
3 days
4 days