Course: PHP Predefined Materials
Besides the interaction between the user and the website, predefined variables can provide key information about the server environment and the user. In this course, PHP Predefined Variables, you'll learn how to make your website more interactive. First, you'll discover how to create more robust forms, leveraging sessions that span multiple pages of data. Next, you'll explore the ability to save cookies. Finally, you'll learn how to upload files and other form data, which utilize these predefined variables. When you're finished with this course, you'll have a stronger understanding of the PHP programming language, and have the ability to create more interactive websites with predefined variables.
Course Overview
Introduction
- Introduction
- Who Will Benefit from This Course?
- What Are Predefined Variables?
- List of All PHP Predefined Variables
- Environment Setup
- Course Outline
Accessing Environment Variables with $_ENV
- Introduction
- Demo - $_ENV
- Demo - Enable Environment Variables
- Demo - getenv()
- Differences Environments
- Summary
Accessing Server Variables with $_SERVER
- Introduction
- Demo - $_SERVER
- Demo - Filename of Executing Script v1
- Demo - Filename of Executing Script v2
- Demo - Root Directory of Given Web Site
- Demo - Server IP Address
- Demo - User IP Address
- Demo - Host Name
- Demo - User Agent Information
- Demo - Time Script Was Requested
- Summary
Accessing URL Variables with $_GET
- Introduction
- Web Site Layout/setup
- Demo - $_GET with URL
- Demo - $_GET with Forms
- Summary
Accessing Form Data with $_POST
- Introduction
- Demo - $_POST with Forms
- Demo - $_POST and Selecting Multiple Options
- Summary
Setting and Retrieving Cookie Data
- Introduction
- Demo - setcookie()
- Demo - $_COOKIE
- Demo - Cookie Expiration
- Demo - Cookie Deletion
- Summary
Accessing Form, URL and Cookie Data with $_REQUEST
- Introduction
- Demo - REQUEST
- REQUEST Pitfalls
- Summary
Persistent Data with $_SESSION
- Introduction
- Site Setup
- Demo - session_start()
- Demo - $_SESSION
- Demo - Populating Session Data
- Demo - session_destroy()
- Demo - Delete Individual Session Variables
- Summary
Uploading Files in PHP
- Introduction
- Code Clean Up
- Demo - $_FILES
- Demo - Saving a File
- Demo - Multiple Files
- Uploading Tips
- Summary