PHP1 - Beginning PHP - Level 1
This Beginning PHP training course will introduce PHP to those with little or no experience in server-side scripting. PHP (PHP: Hypertext Preprocessor) is one of the Web's most popular server-side scripting technologies. This introductory, one-day class has no prerequisites or experience requirements. A moderate familiarity with HTML would be useful, but not necessary. Topics include: the history and common uses of PHP; installation and configuration of PHP; using variables and operators; building dynamic Web pages; accessing the local file system; uploading files via PHP; and sending e-mail with PHP.
Introduction
Requirements
Materials
Assumptions
Objectives
Conventions
PHP History and Features (lecture and discussion)
Free and Open Source software
Server-side scripting vs. client-side HTML/JavaScript
A decade of PHP – what is it and why do you need it?
FOSS vs. proprietary solutions
Zend Technologies – PHP sponsor and the proprietary side of PHP
PHP Common Uses (open discussion)
Forms processing
Database connection
Cookie management
System administration functions
Sessions and session variables
User authentication
Installation and Configuration (Slackware Linux lab)
Installing Slackware Linux (with Apache and PHP)
Configuring Apache for PHP
Checking your installation
Using Variables and Operators (lecture, exercises)
What are variables?
Common variable types
Constants
Operators, operations, and precedence
Variables and forms
HTTP environment variables
Working with variables
Building Dynamic Web Pages (lecture, exercises, lab)
Control statements
if
loop
switch
while
Variable assignments
Building dynamic HTML (DHTML)
Server source / browser source
Accessing the Local File System (lecture, exercises, lab)
Opening
Browsing
Reading
Writing
Closing
Uploading Files with PHP (lecture, exercises, lab)
Using a form to accept a user file
Maintaining security on uploaded files
Sending E-mail with PHP (lecture, exercises, lab)
Creating a message
Addressing a message
Accessing a SMTP server
Processing incoming e-mail messages
Conclusion (review, discussion, evaluation)