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.
1.
PHP Basics
How PHP Works
The php.ini File
Basic PHP Syntax
Variables
First PHP Script
PHP Operators
Creating Dynamic Pages
Passing Variables via the Query String
2.
Flow Control
Conditional Processing
Working with Conditions
Loops
Working with Loops
3.
Arrays
Enumerated Arrays
Working with Enumerated Arrays
Associative Arrays
Working with Associative Arrays
Two-dimensional Arrays
Array Manipulation Functions
4.
PHP and HTML Forms
HTML Forms
Processing Form Input
5.
String Manipulation
Formatting Strings
Working with String Manipulation Functions
Magic Quotes
6.
Reusing Code and Writing Functions
Including Files
Adding a Header and Footer
User Functions
Form Processing
Form Validation and Presentation Functions
7.
Managing Data
Querying a Database
Inserting Records
8.
PEAR:DB
Advantages and Disadvantages of PEAR DB
Using PEAR DB
Creating a Customer Report
9.
Authentication with PHP and SQL
A Database-less Login Form
Authenticating Users
10.
Regular Expressions
Perl-compatible Regular Expression Functions
Regular Expression Syntax
Form Validation Functions with Regular Expressions
11.
Session Control and Cookies
Sessions
Cookies
Authentication with Session Control
12.
Sending Email with PHP
mail()
PHPMailer
Sending a Password by Email
13.
File System Management
Opening a File
Reading from a File
Writing to a File
Writing to a File
File Locking
Uploading Files via an HTML Form
Getting File Information
More File Functions
Directory Functions
Creating a Resume Management Page