File Handling with PHP
Treehouse
Course Summary
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.
-
+
Course Description
About this Course 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
About the Teacher
When not at her computer, Alena enjoys exploring Portland with her friends and family, including her 3 young children. She also enjoys the Symphony, Cooking, Books, Yarn and Yoga.
-
+
Course 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. 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. 11 steps