Total PHP training course description
PHP provides for the creation of dynamic web sites. This hands on training course looks at programming with PHP with an emphasis of building dynamic websites. Forms, state management and database integration are all covered with practicals used throughout the course to reinforce theory sessions.
What will you learn
Create dynamic web sites using PHP.
Write PHP programs.
Debug PHP programs.
Examine existing code and determine its function.
Total PHP training course details
Who will benefit:
Anyone creating dynamic web sites.
Prerequisites:
Software development fundamentals
Duration
3 days
Total PHP training course contents
What is PHP?
PHP history, dynamic web pages, how PHP works, alternatives to PHP. Downloading and installing PHP. Installing MySQL, installing Apache, platform issues.
A first PHP web page
A basic PHP script, PHP page structure. PHP comments. Integrating PHP and HTML.
PHP forms
HTML forms, taking values from forms.
PHP and HTML
Page inputs, environment inputs. phpinfo(), other form elements, sticky fields, generalised code, tables, forms, form elements, style sheets, JavaScript.
Variables operators and expressions
Expressions, data types, assignments, scope, constants, HTTP environment variables, getting data from forms using variables.
Operators
Arithmetic, logical, relational, Boolean, others.
Control statements
Conditional: if, else, elseif, switch. Loops: while, do while, for, break, continue, exit.
Functions
Built in functions, declaration, arguments, scope, loading functions from other files, defaulting parameters, call by value/ name.
Arrays
Indexes, array initialisation, array manipulation, multi dimensional arrays, array functions.
String handling
What is a string, string functions, matching, extraction, replacement. String operations, cleansing, sprintf, formatting web pages, strops and others, splitting strings, REs.
PHP and databases
Database structure, Database APIs, MySQL, Creating tables, Editing tables, simple SQL queries using PHP, building HTML tables using SQL queries, SQL injection, security issues, error handling.
File I/O
Opening, reading, writing files. Permissions, ownership, locking, directories.
PHP, cookies and sessions
State, Cookie properties, setting cookies, retrieving cookies, expiring/deleting cookies. Sessions, session variables, session IDs.
PHP and email
Emailing from servers, attachments.
Objects
OOP, PHP classes, constructors, instances.