O'Reilly logo

PHP 5 Recipes: A Problem-Solution Approach by Jon Stephens, Frank M. Kromann, Nathan A. Good, Lee Babin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required