CHAPTER 7Working with Files and Directories
Although a web page may appear as a nicely collected and displayed grouping of images and text, the actual underlying structure comprises a wide collection of files that are sorted amongst (we hope) well-structured directories. Website file structures generally consist of specifically formatted files that run on a server-enabled computer.
Just as you would explore your current computer using some form of command (perhaps Windows Explorer for Windows-based operating systems or something such as the ls
command in Linux), so too can you use PHP to navigate the internal structure of the computer from which it is currently processing.
PHP 5 is truly effective not just at navigating and browsing the file ...
Get PHP 5 Recipes: A Problem-Solution Approach 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.