INTRODUCTION TO PHP– GTLP1

Course Description

In this PHP training course, students will learn to create database-driven websites using PHP and MySQL or the database of their choice.

^^

Duration

4 days

^^

Target Audience

This course is suitable for those with basic programming skills and HTML experience.

^^

Course Prerequisites

Prior HTML experience is required. Experience in CSS and Basic Programming would be beneficial. The relevant skills are taught in the following courses:

If you have any questions or doubts as to whether you meet the pre-requisites for this course, or indeed are wondering which course best suits you, please consult with us to discuss your suitability for course attendance.

^^

Suggested Follow on Courses

Please contact us for further details.

^^

Course Content

1. PHP Basics

  1. How PHP Works
  2. The php.ini File
  3. Basic PHP Syntax
  4. PHP Tags
  5. PHP Statements and Whitespace
  6. Comments
  7. PHP Functions
  8. Hello World!
  9. Variables
  10. Variable Types
  11. Variable Names (Identifiers
  12. Type Strength
  13. Hello Variables!
  14. Variable Scope
  15. Superglobals
  16. Constants
  17. Variable-Testing and Manipulation Functions
  18. First PHP Script
  19. PHP Operators
  20. Creating Dynamic Pages
  21. Single Quotes vs. Double Quotes
  22. Passing Variables on the URL
  23. Passing Variables via the Query String

 

2. FLOW CONTROL

  1. Conditional Processing
  2. If Conditions
  3. Working with Conditions
  4. Loops
  5. while
  6. do…while
  7. for
  8. break and continue
  9. Working with Loops

3. ARRAYS

  1. Enumerated Arrays
  2. Initializing Arrays
  3. Appending to an Array
  4. Reading from Arrays
  5. Looping through Arrays
  6. Working with Enumerated Arrays
  7. Associative Arrays
  8. Initializing Associative Arrays
  9. Reading from Associative Arrays
  10. Looping through Associative Arrays
  11. Superglobal Arrays
  12. Working with Associative Arrays
  13. Two-dimensional Arrays
  14. Reading from Two-dimensional Arrays
  15. Looping through Two-dimensional Arrays
  16. Array Manipulation Functions

4. PHP AND HTML FORMS

  1. HTML Forms
  2. How HTML Forms Work
  3. A Sample HTML Form
  4. Form Variables
  5. Processing Form Input
  6. String Manipulation
  7. Formatting Strings
  8. Concatenation

5. STRING MANIPULATION FUNCTIONS

  1. Examples of String Functions
  2. Working with String Manipulation Functions
  3. Magic Quotes
  4. magic_quotes_gpc
  5. magic_quotes_runtime
  6. Recommendation on Magic Quotes

6. REUSING CODE AND WRITING FUNCTIONS

  1. Including Files
  2. require
  3. require_once
  4. auto_prepend_file and auto_append_file
  5. Adding a Header and Footer
  6. User Functions
  7. Defining and Calling Functions
  8. Default Values
  9. Variable Scope
  10. By Reference vs. By Value
  11. Form Processing
  12. Code Organization
  13. Form Validation and Presentation Functions

7. MANAGING DATA

  1. Querying a Database
  2. mysqli() Overview
  3. mysqli Methods and Properties
  4. Inserting and Updating Records
  5. mysqli Prepared Statements
  6. Inserting Records

 

8. MDB2

  1. Advantages and Disadvantages of MDB2
  2. Why use a database abstraction layer?
  3. When not to use a database abstraction layer?
  4. Using MDB2
  5. Creating a Customer Report

9. AUTHENTICATION WITH PHP AND SQL

  1. A Database-less Login Form
  2. Authenticating Users

10. REGULAR EXPRESSIONS

  1. Perl-compatible Regular Expression Functions
  2. preg_match()
  3. preg_replace()
  4. Regular Expression Tester
  5. Regular Expression Syntax
  6. Start and End ( ^ $ )
  7. Number of Occurrences ( ? + * {} )
  8. Common Characters ( . \d \D \w \W \s \S )
  9. Grouping ( [] )
  10. Negation ( ^ )
  11. Subpatterns ( () )
  12. Alternatives ( | )
  13. Escape Character ( \ )
  14. Form Validation Functions with Regular Expressions

11. SESSION CONTROL AND COOKIES

  1. Sessions
  2. Configuring Sessions
  3. Session Functions
  4. Cookies
  5. Authentication with Session Control

12. SENDING EMAIL WITH PHP

  1. mail()
  2. Shortcomings of mail()
  3. PHPMailer
  4. Sending a Password by Email

13. FILE SYSTEM MANAGEMENT

  1. Opening a File
  2. fopen()
  3. Reading from a File
  4. fgets()
  5. Writing to a File
  6. fwrite()
  7. Writing to a File
  8. File Locking
  9. flock()
  10. Uploading Files via an HTML Form
  11. Getting File Information
  12. More File Functions
  13. Directory Functions
  14. Getting a Directory Listing
  15. Creating a Resume Management Page

^^

See more Internet Technologies courses