File Handling with PHP Course

Go to class
Write Review

Free Online Course: File Handling with PHP Course provided by Treehouse is a comprehensive online course, which lasts for 1-2 hours worth of material. The course is taught in English and is free of charge.

Overview
  • PHP can do so much more than include files. In this course we'll explore reading and writing files from a directory. We'll also take advantage of built-in parsing functions for working with common file formats to read and write CSV, XML and JSON data.

    What you'll learn

    • Reading and Writing Files
    • Input/Output (I/O)
    • CSV
    • XML
    • JSON

Syllabus
  • Basic File Handling

    We will explore different ways of interacting with data files. You'll learn different methods and use cases for reading and writing files in a directory.

    Chevron 7 steps
    • Directory and File Structures

      6:18

    • Including and Opening files

      6:24

    • Reading Files Into a String or Array

      3:55

    • Reading Files

      3 objectives

    • Writing Files Line by Line

      5:25

    • Writing Files All at Once

      5:05

    • Review Basic File Handling

      5 questions

    Parsing Specific Formats

    In this section, we will take advantage of the built-in functions that PHP offers for parsing common data types. We will read and write CSV, XML and JSON data to create a personal recommendations application.

    Chevron 11 steps
    • Personal Recommendations Project

      1:38

    • Reading CSV

      7:40

    • Writing CSV

      6:04

    • Review CSV

      5 questions

    • Reading JSON

      6:25

    • Writing JSON

      7:52

    • Review JSON

      7 questions

    • Reading XML

      8:21

    • Writing XML

      9:29

    • Review XML

      6 questions

    • Conclusion

      0:50