Chapter 11. Files and Directories

To truly take your Web applications to the next level, you’ll need a method of storing and retrieving data. E-commerce sites, Internet portals, and template-driven content providers all have a system for permanently writing information to the server and retrieving that information as needed.

There are two primary ways of storing data with PHP: using files (and directories) or databases. This chapter will discuss the former, and the next chapter will introduce the latter. It’s worth your time to comprehend both methods (in fact, a database is just a really fancy system for writing to and reading from data stored in files on the server).

Although a database can be more powerful and secure than a file-based system, ...

Get PHP for the World Wide Web, Second Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.