885. Advanced PHP Programming
In this
advanced PHP training course, students will learn advanced features of the PHP
web programming language, its extensions and open source libraries for XML
processing. As the technical web programming paradigm changes, more layers of
abstractions are introduced by the PHP open source community. This course takes
a deep dive into those areas such as XML/XSLT, XML-RPC, Smarty Templates, Web
Services, Ajax and many more. This PHP course also
explores the built-in advanced Object Oriented language constructs and looks at
some of the best practices with all of the advanced technologies combined.
Advanced PHP Programming course demonstrates that PHP is ready for enterprise
Web applications by showing students how to develop PHP-based applications for
maximum performance, stability, and extensibility.
Learning
Objectives
· Program in Object-Oriented PHP
· Process XML with PHP
· Work with the PEAR
HTTP_REQUEST Module
· Work with XML RPC and PHP
· Create PHP Web Services
· Work with Smarty Templates to
speed up PHP development
Prerequisites: Students should have some
PHP experience.
Course
Outline
1. Advanced PHP Techniques
a. Multidimensional Arrays
b. Advanced Function Definitions
c. The HEREDOC Syntax
d. Using printf() and sprintf()
2. Developing Web Applications
a. Documenting Code
b. Code Style and Structure
c. Modularizing a Web Site
d. Affecting the Browser Cache
3. Advanced Database Concepts
a. Storing Sessions in a Database
b. Working with US Zip Codes
c. Creating Stored Functions
d. Displaying Results
Horizontally
4. Security Techniques
a. Remembering the Basics
b. Validating Form Data
c. Using PECL Filter
d. Authentication with PEAR Auth
e. Using MCrypt
5. Object-Oriented Programming
and PHP
a. Building a Class
b. Working with Properties and
Functions
c. Private, Protected, Public
modifiers
d. Interfaces
e. Building a Web Page Object
f. PHP Objects in N-Tier Web
Architecture
g. Importance of PHP Business
Objects
h. Inheriting Classes
i. Inheriting Constructors and
Destructors
j. Overriding Methods
k. Access Control
l. Using the Scope Resolution
Operator
m. Creating Static Members
n. Abstract Classes and Methods
o. Building an Object-Oriented
Payroll System
6. Exception and Error Handling
a. Catching Exceptions
b. Extending the Exception Class
c. Creating a Shopping Cart
d. Using the Cart Class
7. Networking with PHP
a. Accessing Other Web Sites
b. Working with Sockets
c. Performing IP Geolocation
d. Using cURL
8. PHP and the Server
a. Compressing Files
b. PHP-GTK
c. Establishing a Cron
d. Scheduling Tasks on Windows
e. Using COM with PHP
9. PHP's Command-Line Interface
a. Testing Your Installation
b. Executing Bits of Code
c. Creating a Command Line Script
d. Running a Command Line Script
e. Working with Command Line
Arguments
f. Taking Input
10. Using PEAR
a. Using Benchmark
b. Using Mail_mime
c. Installing PEAR::HTTP_REQUEST
with Dependencies
d. HTTP_REQUEST Capability
e. HTTP GET Request
f. HTTP POST Request
g. Programmatically Posting to a
HTML Form
h. Parsing the Response
i. Building a Basic
Authentication PHP Client
11. Ajax and PHP
a. Introduction to Ajax
b. A Simple Example
c. Ajax Technology Stack
d. Ajax Implementations
e. Installing and configuring
HTML_Ajax Pear Module
f. Ajax Server
g. Ajax Client
h. Debugging Ajax Applications
12. XML and PHP
a. What is XML?
b. XML Syntax
c. Attributes, Empty Elements,
and Entities
d. Document Type Definitions
e. Parsing XML
f. Executing XPath Queries
g. DOM Interoperability
h. Using XPath
i. Installing and Configuring
LIBXSL
j. Applying Server side XSL
Transformations
k. Using XML in N-Tier
Architecture
l. Mixing PHP Objects and XML
m. Creating RSS Feeds
13. XML RPC
a. XML-RPC Implementations
b. Installing and Configuring
PHPXMLRPC
c. XML RPC Data-Types
d. XML RPC Server
e. XML RPC Client
f. XML RPC Request and Response
g. Exploring the XML RPC API
14. PHP Web
Services
a. Web Service Technology Stack
b. SOAP Soup
c. Web Services with PHP
d. Installing NuSOAP
e. Building a SOAP SERVER
f. Consuming a Web Service
g. Generating WSDL Dynamically
h. Understanding Generated WSDL
i. WSDL and SOAP Proxies
15. Complex PHP Web
Services
a. Building Interoperable Web
Services
b. Generating and Handling SOAP
Faults
c. RPC Vs. Document Message
Encoding
d. Serializing the SOAP Envelope
e. Web Service Best Practices
16. Smarty
Templates
a. Smarty Overview
b. Installing and configuring
Smarty Pear Module
c. Setting up a Template
d. Passing Data to the Template
e. Smarty for Template Designers
f. Smarty for Programmers
g. Smarty in N-Tier Architecture