YoVDO

PHP Techniques: Working with Files and Directories

Offered By: LinkedIn Learning

Tags

PHP Courses Directory Traversal Courses File Handling Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
This course teaches how to use PHP to work with files and directories.

Syllabus

Introduction
  • Work with files and directories in PHP
  • Using the exercise files on GitHub
1. Working with Files
  • Filesystem basics
  • Relative paths and magic constants
  • Accessing files
  • Reading from files
  • Reading line by line
  • File permissions
  • Writing to files
  • Writing line returns
  • Deleting files
  • Moving the file pointer
  • Examining file details
  • Challenge: Create a log file
  • Solution: Create a log file
2. Working with Directories
  • Directory basics
  • Creating and deleting directories
  • Accessing directory contents
  • Skipping directory entries
  • Pattern matching with glob
  • Challenge: Directory treasure hunt
  • Solution: Directory treasure hunt
3. Accepting User-Uploaded Files
  • Configuring PHP for file uploads
  • Sending files as form data
  • Inspecting uploaded files
  • Moving uploaded files
  • Handling upload errors
  • Setting file permissions
  • Securing file uploads
  • Challenge: Profile photo
  • Solution: Profile photos
Conclusion
  • Next steps

Taught by

Kevin Skoglund

Related Courses

Build a Simple Dynamic Site with Node.js Course (How To)
Treehouse
Introducción a la programación en Python I: Aprendiendo a programar con Python
Pontificia Universidad Católica de Chile via Coursera
Excel/VBA for Creative Problem Solving, Part 2
University of Colorado Boulder via Coursera
Python Functions, Files, and Dictionaries
University of Michigan via Coursera
Estructuras de datos en Python
Universidad Austral via Coursera