Files, Directories and Streams

A PHP application writes logs and caches, stores uploads, imports CSV price lists and builds ZIP exports. All of it goes through one layer, streams, so the same fgets() reads a local file, a gzip file, a memory buffer or a URL.

Subsections