8293  Reviews star_rate star_rate star_rate star_rate star_half

Introduction to PHP

This is a 4 day course where students will learn to create database-driven websites using PHP and MySQL or the database of their choice. PHP is a versatile server-side programming language that works...

Read More
$2,990 USD
Duration 4 days
Course Code WA2258
Available Formats Classroom

Overview

This is a 4 day course where students will learn to create database-driven websites using PHP and MySQL or the database of their choice. PHP is a versatile server-side programming language that works hand-in-hand with front-end Web languages such as HTML and JavaScript. PHP can be used to create all types of dynamic web interfaces and has become one of the most widely used programming languages.

  • PHP is a popular general-purpose scripting language that is especially suited to web development. PHP is used in many web applications, from wiki pages to weblogs to Facebook.

Prerequisites

All attendees must have general familiarity with HTML and CSS. Some database experience and/or programming experience will also be helpful.

Course Details

Outline

PHP Basics

  • Welcome to the Server-side
  • What is a web server?
  • Dynamic Websites
  • Google Chrome DevTools: Network Tab
  • Status Codes
  • How PHP Works
  • The phpini File
  • PHP Tags
  • Hello, World!
  • Comments
  • PHP Statements and Whitespace
  • PHP Functions
  • phpnet
  • Exercise: Using phpnet
  • Variables
  • Variable Types
  • Variable Names (Identifiers)
  • Type Juggling and Casting
  • Hello Variables!
  • Exercise: First PHP Script
  • Variable Scope
  • Superglobals
  • Single Quotes vs Double Quotes
  • Concatenation
  • Passing Variables on the URL
  • Exercise: Passing Variables via the Query String
  • User-defined Functions (UDFs)
  • Defining and Calling Functions
  • Default Values
  • Variable Scope
  • By Reference vs By Value
  • Introduction to the Poet Tree Club
  • Including Files
  • require
  • require_once
  • Exercise: Using Header and Footer Includes
  • Constants
  • Error Reporting
  • Exercise: Displaying Errors
  • Including a Secure Configuration File
  • Exercise: Including a Configuration File

PHP Conditionals

  • if / if - else / if - elseif - else
  • Simple if Condition
  • if-else Condition
  • if-elseif-else statement
  • False Equivalents: Falsy Values
  • Testing for Variable Existence
  • Exercise: Checking for Variable Existence
  • switch/case
  • Exercise: Working with Conditions
  • Ternary Operator
  • Exercise: The Ternary Operator
  • Null Coalescing Operator

Arithmetic Operators and Loops

  • Arithmetic Operators
  • The Modulus Operator
  • Loops
  • while
  • dowhile
  • for
  • break and continue
  • Exercise: Working with Loops

Arrays

  • Indexed Arrays
  • Initializing Arrays
  • Appending to an Array
  • Reading from Arrays
  • Looping through Arrays
  • Exercise: Working with Indexed Arrays
  • Associative Arrays
  • Initializing Associative Arrays
  • Reading from Associative Arrays
  • Looping through Associative Arrays
  • Superglobal Arrays
  • Exercise: Working with Associative Arrays
  • Multi-dimensional Arrays
  • Reading from Two-dimensional Arrays
  • Looping through Two-dimensional Arrays
  • Two-dimensional Associative Arrays
  • Non-tabular Multi-dimensional Arrays
  • Array Manipulation Functions
  • in_array() Function
  • Exercise: Array Practice

Working with Databases

  • Objects
  • Attributes / Properties
  • Behaviors / Methods
  • Classes vs Objects
  • Connecting to a Database with PDO
  • Introducing the Poetree Database
  • phpMyAdmin
  • Querying Records with PHP
  • Exercise: Creating a Single Poem Page
  • Queries Returning Multiple Rows
  • Exercise: Creating the Poems Listings
  • Exercise: Adding Pagination
  • Exercise: Sorting
  • Exercise: Filtering
  • Exercise: Adding Filtering Links to the Single Poem Page

Exception Handling

  • Uncaught Exceptions
  • Throwing Your Own Exceptions
  • Catching Exceptions
  • Getting Information about Exceptions
  • Exercise: Division Form
  • PDOExceptions
  • Exercise: Logging Errors
  • Exercise: The dbConnect() Function
  • When Queries Fail to Execute
  • Exercise: Catching Errors in the PHP Poetry Website

PHP and HTML Forms

  • HTML Forms
  • How HTML Forms Work
  • Form Submissions
  • Sanitizing Form Data
  • htmlspecialchars()
  • htmlentities()
  • filter_var()
  • filter_input()
  • Validating Form Data
  • Was the Field Filled In?
  • Is the Entered Value an Integer?
  • Is it an Email?
  • Is it a Valid Password and Do the Passwords Match?
  • Do the Combined Values Create a Valid Date?
  • Did the User Check the Box?
  • Exercise: Processing Form Input

Sending Email with PHP

  • mail()
  • Shortcomings of mail()
  • Setting Up PHPMailer
  • Get and Install the Latest Version of PHPMailer
  • Mail Server
  • Exercise: Including a Mail Configuration File
  • Sending Email with PHPMailer
  • PHPMailer Methods and Properties
  • Exercise: Creating a Contact Form

Authentication with PHP and SQL

  • The Registration Process
  • Passwords and Pass Phrases
  • Registration with Tokens
  • Exercise: Creating a Registration Form
  • Sessions
  • Session Variables
  • Cookies
  • Exercise: Logging in
  • Logging Out
  • $_REQUEST Variables
  • Exercis9: Resetting the Pass Phrase

LAB: Inserting, Updating, and Deleting Poems

  • Exercise: Submitting a New Poem
  • Exercise: Editing an Existing Poem
  • Exercise: Deleting a Poem

Uploading Files

  • Uploading Images via an HTML Form
  • Resizing Images
  • Exercise: Uploading a Profile Picture

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

Very good couse and again we would like to see more videos on removing FRUs

Great class I learned a great deal from the material. There would seem to a large amount that I need to learn about.

had a good time with the course, however some topics were left out due to the compact amount of time for training.

my experince was great from the day i regetered to the actuall day of the class.

Brandon was a great instructor. The virtual course materials and labs provided were very informative.