What you will learn
This course was designed for participants who wants to explore more on PHP programming intermediate topics such as object-oriented programming (OOP), using PEAR (PHP Extension and Application Repository), invoking PHP on the command line, picking up eXtensible Markup Language (XML), or fine-tuning aspects of your existing skill set.
Prerequisites
Experiences in developing PHP applications will be beneficial.
Chapter 1 Advanced PHP Techniques
Multidimensional Arrays
Advanced Function Definitions
The Heredoc Syntax
Using printf() and sprintf()
Chapter 2 Developing Web Applications
Modularizing a Web Site
Improved SEO with mod_rewrite
Affecting the Browser Cache
Chapter 3 Advanced Database Concepts
Storing Sessions in a Database
Working with U.S. Zip Codes
Creating Stored Functions
Displaying Results Horizontally
Course Outline :: PHP Programming - Intermediate::
Chapter 4 Basic Object-Oriented Programming
OOP Theory
Defining a Class
Creating an Object
The $this Attribute
Creating Constructors
Creating Destructors
Designing Classes with UML
Better Documentation with phpDocumentor
Chapter 5 Advanced OOP
Advanced Theories
Inheriting Classes
Inheriting Constructors and Destructors
Overriding Methods
Access Control
Using the Scope Resolution Operator
Creating Static Members
Chapter 6 More Advanced OOP
Abstract Classes and Methods
Interfaces
Traits
Type Hinting
Namespaces
Chapter 7 Design Patterns
Understanding Design Patterns
The Singleton Pattern
The Factory Pattern
Course Outline :: PHP Programming - Intermediate::
The Composite Pattern
The Strategy Pattern
Chapter 8 Using Existing Classes
Catching Exceptions
Extending the Exception Class
Using PDO
Using the Standard PHP Library
Chapter 9 Example - CMS with OOP
Identifying the Goals
Creating the Database
Making the Template
Writing a Utilities File
Creating the Error View File
Defining the Classes
Creating the Home Page
Viewing a Page
Using HTML_QuickForm2
Logging Out
Adding Pages
Course Outline :: PHP Programming - Intermediate::
Chapter 10 Networking with PHP
Accessing Other Web Sites
Working with Sockets
Performing IP Geolocation
Using cURL
Creating Web Services
Chapter 11 PHP and the Server
Compressing Files
Establishing a cron
Using Mcrypt
Chapter 12 PHP's Command-Line Interface
Testing Your Installation
Executing Bits of Code
Interactive PHP CLI
Creating a Command-Line Script
Running a Command-Line Script
Working with Command-Line Arguments
Taking Input
Built-In Server
Chapter 13 XML and PHP
What is XML?
XML Syntax
Attributes, Empty Elements, and Entities
Defining XML Schemas
Parsing XML
Creating an RSS Feed
Course Outline :: PHP Programming - Intermediate::
Chapter 14 Debugging, Testing and Performance
Debugging Tools
Unit Testing
Profiling Scripts
Improving Performance
Programme scope, delivery arrangements and suitability are confirmed during enquiry.