Duration: 5 Days
Hypertext Preprocessor (PHP) is a cross-platform scripting language that is particularly well-suited for web development. In this course, you'll get an introduction to the fundamentals of the PHP language. You'll learn to set up PHP on a server and continue through most of the common server-side functionality incorporated in modern web sites. The course uses a MySQL database and includes a demonstration of how to use PHP to work with other databases as well. You will also get an introduction to the advanced aspects of the PHP language and how to best utilize PHP 5's object-oriented capabilities, and you'll cover some Unified Modeling Language (UML) and design patterns.
What You Will Learn
- Set up PHP and a MySQL database
- Understand and write syntactically correct PHP
- Create pages that respond to form submissions
- Maintain state with cookies and sessions
- Automatically generate e-mails
- Read and write files on the server
- Connect to a database
- Search for and display records from a database
- Insert, modify, and delete records from a database through web forms
- Validate user input with regular expressions
- Create modular, reusable code by writing user-defined functions
- Introduction to object-oriented programming
- UML
- Putting objects to work
- Design patterns
- Collection class
- CollectionIterator class
- GenericObject class
- Database abstraction layers
- Factory interface
- Event-driven programming
- Logging and debugging
- SOAP
- Model, View, Controller (MVC)
- Communicating with users
- Sessions and authentication
- Unit testing framework
- Finite state machine and custom configuration files
- Designing and developing a robust reporting platform
Audience
Web Developers who are seeking to enhance their Server Side capabilities with PHP 5.
Prerequistes
Course Outline
1. Hypertext Preprocessor (PHP): A Web Server-Side Technology
- Client-Side vs. Server-Side Web Technologies
- The Web's Client-Server Relationship
- Which Web Servers Support PHP?
2. Writing PHP Pages
- PHP Code in an HTML Context
- PHP Statements
- Enclosing Scripting Code within your PHP Pages
- Strings in PHP
- Developing PHPs in this Class
- An Example: "Hello World"
- Conditional Constructs with "if"
- Comparison Operators in PHP
- The Logical AND (&&) and OR (||)
3. Processing Data from Online Forms
- The <FORM> Tag and its Attributes
- Scalar Variables in PHP
- Demonstration: Displaying a Customized Greeting
- Combining the Form and its Processing Code in one PHP File
4. Working with Cookies
- Setting a Cookie
- Retrieving a Cookie
- Example: Setting, Retrieving, and Expiring a Cookie
5. Maintaining State with Sessions
- Sessions
- Storing and Retrieving Session Values
- Example: Using the Session Object to Track a Shopping Cart
6. E-Mail with PHP
7. Writing To A Text File
- Example: Writing to a Tab-Delimited File
- Example: Reading from a Tab-Delimited Text File
8. Loop Structures
- For Loops
- Foreach Loops
- While Loops
9. Database Integration with PHP
- The Databases Used in this Class
- Issuing Database Commands with SQL
- Example: Selecting and Viewing Data from guestbook.mdb
- Connecting and Issuing Commands to the Database
- Displaying Database Results
10. Working with Meta Information from a Database
- Object-Oriented PHP
- Development Strategy Session: Building an Interface for Updating Client Records
11. User-Defined Functions in PHP
12. Regular Expressions
- Character Types and Ranges
- Quantity Indicators
- Location Indicators
- Regular Expressions in PHP
13. Drilling Down and the Query String
- Building the Query String into a Link
- Generating Drill Down Links Dynamically
14. Installing PHP
15. Installing MySQL
16. Object-Oriented Software Development
- Introduction to Object-Oriented Programming
- Unified Modeling Language (UML)
- Putting Objects to Work
- Design Patterns
17. Creating a Reusable Object Toolkit I-Simple Classes and Interfaces
- Collection ClassCollectionIterator Class
- GenericObject Class
- Database Abstraction Layers
- Factory Interface
- Event Driven Programming
- Logging and Debugging
- SOAP
18. Creating A Reusable Object Toolkit II-Complex (Though Not Complicated) Utilities
- Model, View, Controller (MVC)
- Communicating with Users
- Sessions and Authentication
- Unit Testing Framework
- Finite State Machine and Custom Configuration Files
19. Test Case: Sales Force Automation
- Project Overview
- Project Management Methodologies
- Planning the System
- Systems Architecture
- Assembling the Sales Force Automation Toolkit
- Quality Assurance
- Deployment
- Designing and Developing a Robust Reporting Platform
- Where Do We Go From Here?
Exercises
Exercise 1: Adding a Greeting and Date and Time Stamps to a Page
Exercise 2: Personalizing the Homepage for WLDC
Exercise 3: Enhance the WLDC Home Page With Cookies
Exercise 4: Building a Shopping Cart for WLDC
Exercise 5: Implementing CDONTS E-Mail at WLDC
Exercise 6: Storing Registrations in a Tab-Delimited Text File
Exercise 7: Building a Search Engine Interface
Exercise 8: Enhancing the Search Form
Exercise 9: Enhance the Registration Form to Insert a New Client
Exercise 10: Building an Interface for Updating Client Records
Exercise 11: Using Functions to Validate Form Submissions
Exercise 12: Validating Form Data with Regular Expressions
Exercise 13: Drilling Down Client Data
Course Labs