|
MX-PHP501
-
Developing Web Applications Using PHP and MySQL
Are you interested in learning a language that Facebook is written in? All
PHP developers will agree that you do not need to know much about the language
in order to make valuable use of it. How many languages do you know where that’s
possible? It can be used to do some pretty amazing things. The easy entry and
prototyping that PHP offers is letting people with ideas to produce some
magnificent work very quickly.
Now more than ever it is critical for businesses to develop quickly and keep
the infrastructure cost low. For many organization LAMP environment
(Linux,Apache,MySQL,PHP), which usually refers to a solution stack of free and
open source software, provides an incredible business advantage where the only
real cost is the investment into the education of the developers building on
this platform.
This 5-day, hands on PHP Programming course provides the knowledge necessary
to design and develop dynamic, database-driven web pages using PHP. This course
introduces the PHP framework and syntax, and covers in depth the most important
techniques used to build dynamic web sites. Students will learn how to connect
to any ODBC-compliant database, and perform hands on practice with a MySQL
database to create database-driven HTML forms and reports.
PHP and MySQL Training Courseware Goals
- Learn how PHP works
- Learn the basic syntax of PHP
- Learn to create dynamic interactive pages with PHP
- Learn to manipulate files with PHP
- Learn to work with arrays in PHP
- Learn to validate forms with PHP
- Learn to write functions in PHP
- Learn to manipulate and manage database data with PHP
- Learn to authenticate users with PHP
- Learn to manage sessions with PHP
- Learn to work with the PEAR:DB module
- Learn advanced form validation with regular expressions
- Learn to send email with PHP
- Understand how MySQL works
- Learn to use SQL to output reports with MySQL
- Learn to modify MySQL data with SQL
<
Prerequisites:
Experience in the following areas is required:
Experience in the following areas would be beneficial:
- CSS
- Basic Programming
- XML
Outline:
Module 1: PHP Basics
- How PHP Works
- The php.ini File
- Basic PHP Syntax
- PHP Tags
- PHP Statements and Whitespace
- Comments
- PHP Functions
- Hello World!
- PHP Tags
- PHP Statements and Whitespace
- Comments
- PHP Functions
- Hello World!
- Variables
- Variable Types
- Variable Names (Identifiers
- Type Strength
- Hello Variables!
- Variable Scope
- Superglobals
- Constants
- Variable-Testing and Manipulation Functions
- Variable Types
- Variable Names (Identifiers
- Type Strength
- Hello Variables!
- Variable Scope
- Superglobals
- Constants
- Variable-Testing and Manipulation Functions
- PHP Operators
- Creating Dynamic Pages
- Single Quotes vs. Double Quotes
- Howdy World!
- Single Quotes vs. Double Quotes
- Howdy World!
- Conclusion
Module 2: Flow Control
- Conditional Processing
- If Conditions
- Loops
- while
- do...while
- for
- break and continue
- while
- do...while
- for
- break and continue
- Conclusion
Module 3: Arrays
- Enumerated Arrays
- Initializing Arrays
- Appending to an Array
- Reading from Arrays
- Looping through Arrays
- Initializing Arrays
- Appending to an Array
- Reading from Arrays
- Looping through Arrays
- Associative Arrays
- Initializing Associative Arrays
- Reading from Associative Arrays
- Looping through Associative Arrays
- Superglobal Arrays
- Initializing Associative Arrays
- Reading from Associative Arrays
- Looping through Associative Arrays
- Superglobal Arrays
- Two-dimensional Arrays
- Reading from Two-dimensional Arrays
- Looping through Two-dimensional Arrays
- Reading from Two-dimensional Arrays
- Looping through Two-dimensional Arrays
- Array Manipulation Functions
- Conclusion
Module 4: PHP and HTML Forms
- HTML Forms
- How HTML Forms Work
- A Sample HTML Form
- Form Variables
- How HTML Forms Work
- A Sample HTML Form
- Form Variables
- Conclusion
Module 5: String Manipulation
- Formatting Strings
- Concatenation
- String Manipulation Functions
- Examples of String Functions
- Concatenation
- String Manipulation Functions
- Examples of String Functions
- Magic Quotes
- magic_quotes_gpc
- magic_quotes_runtime
- Recommendation on Magic Quotes
- Conclusion
- magic_quotes_gpc
- magic_quotes_runtime
- Recommendation on Magic Quotes
Module 6: Reusing Code and Writing Functions
- Including Files
- require
- require_once
- auto_prepend_file and auto_append_file
- require
- require_once
- auto_prepend_file and auto_append_file
- User Functions
- Defining and Calling Functions
- Default Values
- Variable Scope
- By Reference vs. By Value
- Defining and Calling Functions
- Default Values
- Variable Scope
- By Reference vs. By Value
- Form Processing
- Code Organization
- Conclusion
Module 7: Simple SELECTs
- Introduction to the Northwind Database
- Some Basics
- Comments
- Whitespace and Semi-colons
- Case Sensitivity
- Comments
- Whitespace and Semi-colons
- Case Sensitivity
- SELECTing All Columns in All Rows
- SELECTing Specific Columns
- Sorting Records
- Sorting By a Single Column
- Sorting By Multiple Columns
- Sorting By Column Position
- Ascending and Descending Sorts
- Sorting By a Single Column
- Sorting By Multiple Columns
- Sorting By Column Position
- Ascending and Descending Sorts
- The WHERE Clause and Operator Symbols
- Checking for Equality
- Checking for Inequality
- Checking for Greater or Less Than
- Checking for NULL
- WHERE and ORDER BY
- Checking for Equality
- Checking for Inequality
- Checking for Greater or Less Than
- Checking for NULL
- WHERE and ORDER BY
- The WHERE Clause and Operator Words
- The BETWEEN Operator
- The IN Operator
- The LIKE Operator
- The NOT Operator
- The BETWEEN Operator
- The IN Operator
- The LIKE Operator
- The NOT Operator
- Checking Multiple Conditions
- AND
- OR
- Order of Evaluation
- AND
- OR
- Order of Evaluation
- Conclusion
Module 8: Subqueries, Joins and Unions
- Subqueries
- Joins
- Table Aliases
- Multi-table Joins
- Table Aliases
- Multi-table Joins
- Outer Joins
- Unions
- UNION ALL
- UNION Rules
- Conclusion
Module 9: Inserting, Updating and Deleting Records
- INSERT
- UPDATE
- DELETE
- Conclusion
Module 10: Managing Data
- Querying a Database
- mysqli() Overview
- mysqli Methods and Properties
- Inserting and Updating Records
- mysqli Prepared Statements
- mysqli() Overview
- mysqli Methods and Properties
- Inserting and Updating Records
- mysqli Prepared Statements
- Conclusion
Module 11: PEAR:DB
- Advantages and Disadvantages of PEAR DB
- Why use a database abstraction layer?
- When not to use a database abstraction layer?
- Why use a database abstraction layer?
- When not to use a database abstraction layer?
- Using PEAR DB
Module 12: Authentication with PHP and SQL
- A Database-less Login Form
- Conclusion
Module 13: Regular Expressions
- Perl-compatible Regular Expression Functions
- preg_match()
- preg_replace()
- Regular Expression Tester
- preg_match()
- preg_replace()
- Regular Expression Tester
- Regular Expression Syntax
- Start and End ( ^ $ )
- Number of Occurrences ( ? + * {} )
- Common Characters ( . \d \D \w \W \s \S )
- Grouping ( [] )
- Negation ( ^ )
- Subpatterns ( () )
- Alternatives ( | )
- Escape Character ( \ )
- Start and End ( ^ $ )
- Number of Occurrences ( ? + * {} )
- Common Characters ( . \d \D \w \W \s \S )
- Grouping ( [] )
- Negation ( ^ )
- Subpatterns ( () )
- Alternatives ( | )
- Escape Character ( \ )
- Form Validation Functions with Regular Expressions
- Conclusion
Module 14: Session Control and Cookies
- Sessions
- Configuring Sessions
- Session Functions
- Configuring Sessions
- Session Functions
- Cookies
- Conclusion
Module 15: Sending Email with PHP
- mail()
- Shortcomings of mail()
- PHPMailer
- Conclusion
Module 16: File System Management
- Opening a File
- fopen()
- Reading from a File
- fgets()
- Writing to a File
- fwrite()
- File Locking
- flock()
- Uploading Files via an HTML Form
- Getting File Information
- More File Functions
- Directory Functions
- Getting a Directory Listing
- Getting a Directory Listing
- Conclusion
Audience:
Developers
|