PHP Programming Language

Register this course for $390
USA & Canada: +1 240-200-6131
International Call: +1 240-391-8360
9am-6pm DC time or 1pm-10pm GMT

Course Code: hsts-c12

Course Description

This hands-on PHP Programming course provides the knowledge necessary to design and develop dynamic, database-driven web pages using PHP version 5. PHP is a language written for the web, quick to learn, easy to deploy and provides substantial functionality required for e-commerce. This course introduces the PHP framework and syntax, and covers in depth the most important techniques used to build dynamic web sites. 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. E-commerce skills including user authentication, data validation, dynamic data updates, and shopping cart implementation are covered in detail. Students also learn how to configure PHP and the Apache Web Server. Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency.
You Will Learn:

  • Creating and modifying a PHP page
  • Working with variables and data types
  • Using if/elseif/else statements to control processing conditionally
  • Creating programs that include for, while, and do loops to process statements repeatedly
  • Employing the break, continue, and exit statements to modify default loop behaviors
  • Creating arrays
  • How to manipulate strings in PHP using the built-in functions
  • Maintaining state using cookies, session variables, hidden form fields and query strings
  • The fundamental techniques necessary to create a shopping cart solution
  • Using SQL to SELECT, INSERT, UPDATE and DELETE data from tables
  • Using the phpMyAdmin utility to administer the
  • MySQL database
  • Using PHP to manipulate files
  • Identifying and handling the three main types of errors that can occur when programming with PHP

Course Prerequisites

Basic computer skills and knowledge of HTML fundamentals equivalent to attending the Beginner Website Design Using HTML and CSS course. Prior programming experience is helpful but not required.

Follow-up Courses

SQL Programming and DB Management
Learn the Fundamentals of UNIX and Linux
Responsive Site Design with Bootstrap
Intro to Dreamweaver with Website Development Training
Adobe Muse Training Course
Introduction to the WordPress CMS
Introduction to the Joomla CMS
Mastering Drupal in Six Hours
Object Oriented Programming with UML Workshop
jQuery Programming for Beginners

Class Info

Highlights

  • 10 sessions each 1.5 hours with hands-on training led by experienced instructors
  • Digital courseware and online course tracking
  • Final course project delivery
  • Certificate of Completion for each course
  • Session-based assignment

Enrollment Fee

In-person in DC or Online: $390 per course

Course Session Dates

Our courses are offered all year around. Upon registration we enroll you to the earliest available class but you can reschedule it free of charge.

Location

  • In Person at our office (1525 Newton St, NW, Ste 212 Washington DC, 20010) located 2 blocks from the Columbia Height metro
  • Private custom training on site or at your location
  • Project based training cn site or at your location

Time

  • In Person: 9AM-3:00PM (1 hour Lunch)
  • Private custom & project based training: your preference

Software Versions

Our classes are taught on the most current version of software whenever possible. To request a specific version, please Contact Us or call us at 240-200-6131


Course Outline

1- 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

2- 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)

3- Conditional Constructs
- True and False Expressions
- if, else and elseif
- switch/case Statement
- The ? (Ternary) Operator
- Timestamps

4- Introduction to the Apache Web Server
- Apache Configuration Files
- Configuring Apache for PHP
- WWW Sites within Apache
- Apache Virtual Hosts
- Website Properties

5- PHP Functions
- Introduction to Functions
- Declaring Functions
- Scope
- Passing Arguments to Functions
- Local and Global Scope
- Passing Arguments to Functions by Value and Reference
- Returning Values from a Function
- Using Include Files
- The Require Statement
- Recursion
- Dynamic Function Calls
- Predefined PHP Functions

6- PHP Operators
- Logical Operators
- Relational Operators
- Bitwise Operators
- Other Operators

7- Arrays in PHP
- What are Arrays?
- Usage of Arrays in PHP
- Array Indexing
- Initializing Arrays
- Operating on Arrays
- Sorting Arrays
- One-Dimensional Arrays
- Multi-Dimensional Arrays
- Associative Arrays
- Array Functions
- Forms and Arrays in Web Applications

8- 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

9- 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

10- Enabling E-Commerce
- Required Characteristics of an E-Commerce Site
- Authentication and Authorization
- Data Validation
- Building a Custom Shopping Cart
- Persisting Shopping Cart Data Over Multiple Pages
- Criteria for Evaluating Third Party Shopping Cart Solutions
- Open Source vs. Commercial Shopping Cart Solutions
- Order Processing via the Web
- Implementing Order System Security using SSL
- Using Mail Servers (SMTP and Sendmail) for Client Communication
- Configuring E-mail Output Parameters


The following topics may be included at the discretion of your instructor.

11- 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

12- Using Cookies with PHP
- Purpose of Cookies
- Cookie Myths
- Setting Cookies
- Retrieving Cookies
- Expiring Cookies
- Deleting Cookies
- Storing Arrays in Cookies

13- Miscellaneous PHP Tasks
- Error Logging
- Session Management and Maintaining State
- Web Application Architecture
- Using Environment Variables
- Changing Execution by Redirecting to Other URLs
- Embedding JavaScript within PHP
- Using the HTTP Protocols to Pass Data
- Showing Different Content to Different Browsers
- Getting IP Addresses from Visitors

Register this course for $390