back to top

This is a four-day course offers training in one of the hottest technologies on the web. PHP combines the ease of a scripting language with the power of languages such as Perl, C, or Java and numerous libraries for everything from connecting to back-end databases to drawing Acrobat files on the fly. Participants will gain the knowledge necessary to design and develop dynamic, database-driven web pages.

The course introduces the PHP framework and syntax, and covers in depth the most important functions used to build dynamic data enriched web applications. Students 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. Students will also learn how to configure PHP and Apache Web Server. The course also introduces advanced programming constructs, object oriented programming with PHP, and XML parsing with PHP.

The course is intended for web developers who want to take advantage of the wealth of functionality offered by PHP. Previous knowledge of HTML required and experience with C, C++, Perl or Java helpful.

Course Contents

Overview Of PHP

  • Static vs. Dynamic Web Sites
  • Dynamic Content from Databases
  • Developing Dynamic Internet Applications
  • Client-Side Scripting vs. Server-Side Scripting
  • Overview of PHP Advantages and Capabilities
  • Configuring PHP.INI
  • PHP vs. ASP

Basic Scripting and Looping Constructs

  • PHP Scripting Fundamentals
  • Print Statement
  • Code Blocks
  • Primitive Data Types
  • Defining Constants and Variables

Looping Constructs

  • While
  • Do… While
  • For
  • Exit & Break
  • Conditional Constructs True and False Expressions
  • If, Else and Elseif
  • Switch/Case Statement
  • The ? (Ternary) Operator
  • Timestamps

Introduction to the Apache Web Server

  • Configuration Files
  • PHP Installation and Configuration
  • WWW Sites within Apache
  • Website Properties
  • RPM Installation vs. Binary Installation

PHP Functions

  • Introduction to Functions
  • Declaring Functions
  • Scope
  • Passing Arguments to Functions
  • Returning Values from a Function
  • Using Include Files
  • The Require Statement
  • Recursion
  • Dynamic Function Calls
  • Predefined PHP Functions

PHP Operators

  • Logical Operators
  • Relational Operators
  • Bitwise Operators
  • Other Operators

Arrays in PHP

  • What are Arrays?
  • Usage of Arrays in PHP
  • Indexing Arrays
  • Initializing Arrays
  • Adding and Removing from Arrays
  • One-Dimensional Arrays
  • Multi-Dimensional Arrays
  • Array Functions

Working with Databases and Forms

  • Configuring PHP For Database Support
  • PHP's Database APIs
  • PHP's SQL API
  • MySQL vs. Access
  • MySQL vs. SQL Server
  • Database Drivers
  • Database Driver Class Wrappers
  • ODBC
  • Simple SQL Queries via PHP
  • Tracking Visitors with Session IDs
  • Populating Forms
  • Retrieving Data from Forms

Working with Data Files in PHP

  • Searching File Contents With Regular Expressions
  • Changing and Editing File Contents
  • Splitting and Joining Information Inside Files
  • String Functions
  • Regular Expression Functions
  • Reading, Writing and Deleting Files
  • Handling File Permissions
  • File Locking
  • Reading Directory Contents
  • Creating and Deleting Directories

Configuring and Using MySQL

  • MySQL as a Client/Server Solution
  • Introduction to MySQL Capabilities as a Powerful RDBMS
  • Installing and Configuring MySQL
  • Connecting to MySQL
  • PHP Functions Specific to MySQL
  • Executing SQL Calls Select
  • Insert
  • Fetch
  • Update
  • Delete
  • Using PHP MyAdmin to configure MySQL

E-mail and PHP

  • Using Mail Servers (SMTP and Sendmail)
  • Converting Messages to Readable Formats
  • Sending E-mail
  • Sending Attachments
  • Sending Binary Attachments
  • Sending HTML E-mail
  • Validating an E-mail Address
  • Automating E-mail Messaging

Using Cookies with PHP

  • Purpose of Cookies
  • Cookie Myths
  • Setting Cookies
  • Retrieving Cookies
  • Expiring Cookies
  • Deleting Cookies
  • Storing Arrays in Cookies

Miscellaneous PHP Tasks

  • Error Logging
  • Session Management & Maintaining State
  • How to Build a Shopping Cart
  • Using Environmental Variables
  • Changing Execution by Redirecting to Other URLs
  • Embedding JavaScript with PHP
  • Using HTTP and FTP Protocols to Pass Data
  • Showing Different Content to Different Browsers
  • Getting IP Addresses from Visitors
   
back to top
back to top