From the course: PHP: Exporting Data to Files

Using the exercise files - PHP Tutorial

From the course: PHP: Exporting Data to Files

Start my 1-month free trial

Using the exercise files

If you're a subscriber to the lynda.com online training library, you have access to the exercise files for this course. I've got them open here on my desktop. The files are organized according to chapter and inside each chapter, there's a separate folder for each video that uses exercise files. Each folder contains a complete set of files for that video. Whether a significant change is in the state of a file between the start and end of the video, the final version has end appended to the file name. In some cases, text files contain code that can be copied and pasted into the file that you're working on. Chapters 3 and 4 make use of several open source PHP libraries. The exercise files contain the most recent version of each library at the time of recording. You might find more up-to-date versions on the internet. However, the first part of chapter 3 uses PHPExcel 1.7.9. The 2.0 version of PHPXL which was under development at the time of recording is expected to break backwards compatibility. So I suggest that you use the version included in the exercise files. I've also created a suite of classes to handle export to plain text, CXV, XML, open document text, and Microsoft Word. The necessary files are in the relevant folder for each video, but there's also a full set in the foundation PHP folder. To use the files, you'll need to copy them to a folder inside your PHP server route throughout the course. I use a folder called PHP Export. I've put all the class definitions inside a folder called SRC. The database queries are in a folder called Includes, and the output folder is used in chapters 6 and 7 to generate OpenDocument text and Microsoft Word files. It needs to be writable by the web server. So, that's how everything is set up. Let's get on with the code and start exporting data with PHP.

Contents