O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PHP

Video Description

**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 viewingThis PHP title insteadA 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.

Table of Contents

  1. Concepts
    1. What is PHP? 00:01:02
    2. Data Flow 00:05:20
    3. What You'll Need pt. 1 00:05:35
    4. What You'll Need pt. 2 00:05:59
    5. Scripting vs. Viewing 00:03:08
    6. Your First Script 00:02:27
  2. Absolute Basics
    1. Embedding PHP within HTML 00:06:00
    2. Variables 00:06:22
    3. Operators 00:08:55
    4. More Complex Operators pt. 1 00:04:44
    5. More complex Operators pt. 2 00:05:24
  3. Making Choices
    1. Introducing Conditionals: 'If' and Conditional Operators 00:09:06
    2. Logical Operators 00:06:53
    3. Using 'Else' and 'Elseif' 00:07:55
    4. Multiple Choices: 'Switchcasebreak' 00:06:19
    5. The Concise Conditional: '?' : 00:08:10
  4. Loops and Control Structures
    1. Repetition: The 'For' Loop 00:09:43
    2. 'While' and 'Do..While' Loops 00:05:05
    3. Get Me Out Of Here! 'Break' and 'Exit' 00:04:45
  5. Data
    1. Introduction to Arrays 00:04:29
    2. Referencing and Sorting Arrays 00:09:59
    3. Associative Arrays pt. 1 00:06:27
    4. Associative Arrays pt. 2 00:05:04
    5. More About Arrays 00:06:08
    6. Multidimensional Arrays 00:09:06
    7. Joining Arrays and Splitting Strings 00:04:51
    8. More String Manipulation 00:06:57
    9. Replacing Text Within Strings 00:02:41
    10. Introduction to Regular Expressions pt. 1 00:05:59
    11. Introduction to Regular Expressions pt. 2 00:06:23
    12. More About Regular Expressions pt. 1 00:05:35
    13. More About Regular Expressions pt. 2 00:04:47
    14. Replacing Text Using Regular Expressions 00:02:54
  6. Querying A Database
    1. Our Sample MySQL Database 00:04:54
    2. Connecting to the Database 00:06:33
    3. Retrieving Data 00:06:47
  7. Interacting With The User
    1. A Simple HTML Form 00:06:19
    2. A Simple PHP Search Script. pt. 1 00:05:10
    3. A Simple PHP Search Script. pt. 2 00:04:51
    4. Validating User Input 00:09:34
    5. A Search Feature With Dynamic Options pt. 1 00:06:06
    6. A Search Feature With Dynamic Options pt. 2 00:05:56
    7. An HTML Form For User Feedback 00:07:44
    8. Adding The Feedback to the Database pt. 1 00:04:51
    9. Adding The Feedback to the Database pt. 2 00:05:55
    10. Validating an Email Address 00:08:58
    11. Uploading a File pt. 1 00:05:06
    12. Uploading a File pt. 2 00:05:28
  8. Intermediate Coding Techniques
    1. Reusing Code: Functions pt. 1 00:05:53
    2. Reusing Code: Functions pt. 2 00:04:30
    3. Variable Scope 00:05:53
    4. Calling By Value or By Reference 00:04:51
    5. Variable Numbers of Arguments 00:07:32
    6. Calling Functions Through Variables 00:02:33
    7. Recursive Functions 00:08:12
    8. Date and Time 00:06:58
    9. Using External Code Resources 00:07:38
    10. Error Capture: The Graceful Death pt. 1 00:05:38
    11. Error Capture: The Graceful Death pt. 2 00:05:55
    12. Error Capture: Custom Error Handlers pt. 1 00:06:27
    13. Error Capture: Custom Error Handlers pt. 2 00:04:44
  9. Sessions and Users
    1. A Simple Login System 00:05:35
    2. Sessions 00:05:51
    3. Cookies 00:04:04
    4. Logging a User In pt. 1 00:09:11
    5. Logging a User In pt. 2 00:06:28
    6. Logging Out 00:07:45
    7. Registering a User pt. 1 00:07:19
    8. Registering a User pt. 2 00:04:17
  10. Objects
    1. Classes And Objects 00:06:20
    2. Properties and Methods pt. 1 00:05:54
    3. Properties and Methods pt. 2 00:04:04
    4. Constructor Functions 00:04:14
    5. Inheritance pt. 1 00:04:48
    6. Inheritance pt. 2 00:05:12
    7. Polymorphism 00:03:57
    8. Aggregation pt.1 00:06:01
    9. Aggregation pt. 2 00:06:00
  11. Building a Data-Driven Website
    1. The Project: A Discussion Forum 00:06:38
    2. Common Elements pt. 1 00:08:05
    3. Common Elements pt. 2 00:04:06
    4. Adapting the Login Page pt. 1 00:08:17
    5. Adapting the Login Page pt. 2 00:05:15
    6. Adapting the Registration Page 00:02:09
    7. View all Threads pt. 1 00:08:43
    8. View all Threads pt. 2 00:06:47
    9. Viewing a Thread pt. 1 00:05:52
    10. Viewing a Thread pt. 2 00:04:33
    11. Making or Editing A Post pt. 1 00:05:51
    12. Making or Editing A Post pt. 2 00:06:10
    13. Deleting a Post or Thread 00:04:54