Reading and Writing Files

This section integrates file management and system concepts while demonstrating how to read and write files from your PHP programs. Reading and writing files is an integral part of web application design in dynamic pages. While reading and writing data files has migrated in many instances to reading data from and writing data to databases, there are still many opportunities to read and write files.

Files contain many things, which can vary from simple text to collections of highly organized data structures. In the mix of varieties, you can have simple comma- or tab-delimited files. The data in these files are typically scalar values, like numbers and strings. They are also known as flat files. The flat-file label is ...

Get Oracle Database 10g Express Edition PHP Web Programming now with O’Reilly online learning.

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