11. Files and Directories

Taking your Web applications to the next level requires a method of storing and retrieving data. You have two primary options in 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 learn both methods: Although a database can be more powerful and secure than a file-based system, you may be surprised at what’s possible by writing and reading simple text documents on the server.

In this ...

Get PHP for the Web: Visual QuickStart Guide, Fourth Edition 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.