EIEIOTECHNOVATION
← Training programmes

EIEIO / PROGRAMMING & DEVELOPMENT

PHP & Javascript (Basic)

Course outline

2 days

Duration

2 days

Overview

This PHP Programming course provides the knowledge necessary to design and develop dynamic, database-driven Web pages using PHP 7. 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 modern 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.

JavaScript is popular programming language which powers web pages and web applications. If you are new to programming or just new to the language, this course will get you started coding in JavaScript.

Objective

  • Creating and modifying PHP pages
  • Working with variables and data types
  • Using if/elseif/else statements to control processing conditionally
  • Creating programs with for, while, and do loops to process statements repeatedly
  • Employing break, continue, and exit statements to modify default loop behaviours
  • Maintaining state using cookies, session, hidden form fields and query strings
  • Using PHP to manipulate files
  • Learn how JavaScript is used.
  • Understand JavaScript syntax.
  • Learn about objects, methods, and properties.
  • Work with JavaScript variables.
  • Create own functions in JavaScript.
  • Write flow control logic in JavaScript.
  • Understand how to handle events, such as mouse clicks and page loads.
  • Learn to handle and prevent JavaScript errors.

Target Participants

Software developers / programmers

Prerequisites

  • Students should be familiar with any programming language
  • Web Development Experience (HTML / CSS)
  • Basic computer skills and knowledge of HTML fundamentals.
  • Prior programming experience is helpful but not required.

Outline

PHP

  • Overview Of PHP
  • Static vs. Dynamic Web Sites
  • Developing Dynamic Internet Applications
  • Client-Side Scripting vs. Server-Side Scripting
  • Configuring php.ini
  • PHP Scripting Fundamentals
  • Primitive Data Types
  • Defining Constants and Variables
  • Logical / Relational Operators
  • PHP7 Null Coalescing operator
  • PHP7 Spaceship Operator
  • Conditional / Looping Constructs
  • True and False Expressions
  • if, else and elseif
  • switch/case Statement
  • The ? (Ternary) Operator
  • Timestamps
  • while
  • do… while
  • for
  • exit and break
  • Working with Databases and Forms
  • Configuring PHP For Database Support
  • PHP's Database APIs
  • PHP's SQL API
  • Database Drivers
  • Database Driver Class Wrappers
  • Populating Forms
  • Retrieving Data from Forms
  • 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
  • Using Cookies with PHP
  • Purpose of Cookies
  • Cookie Myths
  • Setting Cookies
  • Retrieving Cookies
  • Expiring Cookies
  • Deleting Cookies
  • Storing Arrays in Cookies

Javanscript

Introduction

  • What is JavaScript
  • Console
  • Comments
  • Data Types
  • Arithmetic Operators
  • String Concatenation
  • Properties
  • Methods
  • Built-in Objects
  • Conditionals
  • What are conditional statements
  • The if keyword
  • If … Else Statements
  • Comparison Operators
  • Logical Operators
  • Truthy and Falsy
  • Ternary Operator
  • Else If Statements
  • The switch keyword
  • Arrays
  • Introduction to Arrays
  • Create an Array
  • Accessing Elements
  • Update Elements
  • Arrays with let and const
  • The .length property
  • The .push method
  • The .pop method
  • More Array Methods
  • Arrays and Functions
  • Nested Arrays
  • Loops

Introduction

  • Repeating Tasks Manually
  • The For Loop
  • Looping in Reverse
  • Looping through Arrays
  • Nested Loops
  • The While Loop
  • Do … While Statements
  • The break keyword
  • The .forEach method
  • The .map method
  • The .filter method
  • The .findIndex method
  • The .reduce method
  • Functions
  • What are functions
  • Function Declarations
  • Calling a Function
  • Parameters and Arguments
  • Default Parameters
  • Return
  • Function Expressions
  • Arrow Functions
  • Functions as parameters
  • Returning Functions
  • Scope

Introduction

  • Blocks and Scope
  • Global Scope
  • Block Scope
  • Closures

Programme scope, delivery arrangements and suitability are confirmed during enquiry.