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 the filesystem 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 chapter, you’ll learn about file permissions, ...

Get PHP for the Web: Visual QuickStart Guide, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.