11 Files and Directories

To truly take your Web applications to the next level, you’ll need a method of storing and retrieving data. 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, you may be surprised at how much you can do by sending and retrieving information from simple text documents on the server!

In this chapter, you’ll learn about file permissions and then learn ...

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

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