880.
Introduction to PHP
In this course,
students will learn how to create dynamic and interactive websites using PHP and
how to manage databases with PHP. Students will learn to authenticate users,
manage sessions, manage emails, manipulate files, validate forms and work with
PEAR:DB module.
Prerequisites: Students should have some HTML
experience.
Course
Outline
1. PHP Basics
a. How PHP Works
b. The php.ini File
c. Basic PHP Syntax
d. Variables
e. First PHP Script
f. PHP Operators
g. Creating Dynamic Pages
h. Passing Variables via the
Query String
2. Flow Control
a. Conditional Processing
b. Working with Conditions
c. Loops
d. Working with Loops
3. Arrays
a. Enumerated Arrays
b. Working with Enumerated Arrays
c. Associative Arrays
d. Working with Associative
Arrays
e. Two-dimensional Arrays
f. Array Manipulation Functions
4. PHP and HTML Forms
a. HTML Forms
b. Processing Form Input
5. String Manipulation
a. Formatting Strings
b. Working with String
Manipulation Functions
c. Magic Quotes
6. Reusing Code and Writing
Functions
a. Including Files
b. Adding a Header and Footer
c. User Functions
d. Form Processing
e. Form Validation and
Presentation Functions
7. Managing Data
a. Querying a Database
b. Inserting Records
8. PEAR:DB
a. Advantages and Disadvantages
of PEAR DB
b. Using PEAR DB
c. Creating a Customer Report
9. Authentication with PHP and
SQL
a. A Database-less Login Form
b. Authenticating Users
10. Regular Expressions
a. Perl-compatible Regular
Expression Functions
b. Regular Expression Syntax
c. Form Validation Functions with
Regular Expressions
11. Session Control and Cookies
a. Sessions
b. Cookies
c. Authentication with Session
Control
12. Sending Email with PHP
a. mail()
b. PHPMailer
c. Sending a Password by Email
13. File System Management
a. Opening a File
b. Reading from a File
c. Writing to a File
d. Writing to a File
e. File Locking
f. Uploading Files via an HTML
Form
g. Getting File Information
h. More File Functions
i. Directory Functions
j. Creating a Resume Management
Page