Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

**NOTE** This tutorial explains an outdated version of PHP. If you have installed PHP recently it is highly likely the code shown here WILL NOT WORK in your scripts. We highly recommend viewing This PHP title instead A PHP5 title is also currently in production. **NOTE**

PHP (Hypertext Preprocessor) is a tool that lets you create dynamic web pages. PHP-enabled web pages are treated just like regular HTML pages and you can create and edit them the same way you normally create regular HTML pages. Virtual Training Company's tutorial is taught by Joshua Mostafa and shows you how to get the most out of using PHP. He begins with the basics and takes you smoothly through all you need to know to use PHP in creating an incredible web site. To start today, just click on one of the topics below.

Subscriber Reviews

Average Rating: 5 out of 5 rating Based on 1 Rating

No Subscribers have provided a review for this video.

Table of Contents

Chapter/Selection

Time

Concepts

What is PHP?

Preview

00:01:02

Data Flow

Preview

00:05:20

What You'll Need pt. 1

Preview

00:05:35

What You'll Need pt. 2

Preview

00:05:59

Scripting vs. Viewing

Preview

00:03:08

Your First Script

Preview

00:02:27

Absolute Basics

Embedding PHP within HTML

Preview

00:06:00

Variables

Preview

00:06:22

Operators

Preview

00:08:55

More Complex Operators pt. 1

Preview

00:04:44

More complex Operators pt. 2

Preview

00:05:24

Making Choices

Introducing Conditionals: 'If' and Conditional Operators

Preview

00:09:06

Logical Operators

Preview

00:06:53

Using 'Else' and 'Elseif'

Preview

00:07:55

Multiple Choices: 'Switchcasebreak'

Preview

00:06:19

The Concise Conditional: '?' :

Preview

00:08:10

Loops and Control Structures

Repetition: The 'For' Loop

Preview

00:09:43

'While' and 'Do..While' Loops

Preview

00:05:05

Get Me Out Of Here! 'Break' and 'Exit'

Preview

00:04:45

Data

Introduction to Arrays

Preview

00:04:29

Referencing and Sorting Arrays

Preview

00:09:59

Associative Arrays pt. 1

Preview

00:06:27

Associative Arrays pt. 2

Preview

00:05:04

More About Arrays

Preview

00:06:08

Multidimensional Arrays

Preview

00:09:06

Joining Arrays and Splitting Strings

Preview

00:04:51

More String Manipulation

Preview

00:06:57

Replacing Text Within Strings

Preview

00:02:41

Introduction to Regular Expressions pt. 1

Preview

00:05:59

Introduction to Regular Expressions pt. 2

Preview

00:06:23

More About Regular Expressions pt. 1

Preview

00:05:35

More About Regular Expressions pt. 2

Preview

00:04:47

Replacing Text Using Regular Expressions

Preview

00:02:54

Querying A Database

Our Sample MySQL Database

Preview

00:04:54

Connecting to the Database

Preview

00:06:33

Retrieving Data

Preview

00:06:47

Interacting With The User

A Simple HTML Form

Preview

00:06:19

A Simple PHP Search Script. pt. 1

Preview

00:05:10

A Simple PHP Search Script. pt. 2

Preview

00:04:51

Validating User Input

Preview

00:09:34

A Search Feature With Dynamic Options pt. 1

Preview

00:06:06

A Search Feature With Dynamic Options pt. 2

Preview

00:05:56

An HTML Form For User Feedback

Preview

00:07:44

Adding The Feedback to the Database pt. 1

Preview

00:04:51

Adding The Feedback to the Database pt. 2

Preview

00:05:55

Validating an Email Address

Preview

00:08:58

Uploading a File pt. 1

Preview

00:05:06

Uploading a File pt. 2

Preview

00:05:28

Intermediate Coding Techniques

Reusing Code: Functions pt. 1

Preview

00:05:53

Reusing Code: Functions pt. 2

Preview

00:04:30

Variable Scope

Preview

00:05:53

Calling By Value or By Reference

Preview

00:04:51

Variable Numbers of Arguments

Preview

00:07:32

Calling Functions Through Variables

Preview

00:02:33

Recursive Functions

Preview

00:08:12

Date and Time

Preview

00:06:58

Using External Code Resources

Preview

00:07:38

Error Capture: The Graceful Death pt. 1

Preview

00:05:38

Error Capture: The Graceful Death pt. 2

Preview

00:05:55

Error Capture: Custom Error Handlers pt. 1

Preview

00:06:27

Error Capture: Custom Error Handlers pt. 2

Preview

00:04:44

Sessions and Users

A Simple Login System

Preview

00:05:35

Sessions

Preview

00:05:51

Cookies

Preview

00:04:04

Logging a User In pt. 1

Preview

00:09:11

Logging a User In pt. 2

Preview

00:06:28

Logging Out

Preview

00:07:45

Registering a User pt. 1

Preview

00:07:19

Registering a User pt. 2

Preview

00:04:17

Objects

Classes And Objects

Preview

00:06:20

Properties and Methods pt. 1

Preview

00:05:54

Properties and Methods pt. 2

Preview

00:04:04

Constructor Functions

Preview

00:04:14

Inheritance pt. 1

Preview

00:04:48

Inheritance pt. 2

Preview

00:05:12

Polymorphism

Preview

00:03:57

Aggregation pt.1

Preview

00:06:01

Aggregation pt. 2

Preview

00:06:00

Building a Data-Driven Website

The Project: A Discussion Forum

Preview

00:06:38

Common Elements pt. 1

Preview

00:08:05

Common Elements pt. 2

Preview

00:04:06

Adapting the Login Page pt. 1

Preview

00:08:17

Adapting the Login Page pt. 2

Preview

00:05:15

Adapting the Registration Page

Preview

00:02:09

View all Threads pt. 1

Preview

00:08:43

View all Threads pt. 2

Preview

00:06:47

Viewing a Thread pt. 1

Preview

00:05:52

Viewing a Thread pt. 2

Preview

00:04:33

Making or Editing A Post pt. 1

Preview

00:05:51

Making or Editing A Post pt. 2

Preview

00:06:10

Deleting a Post or Thread

Preview

00:04:54