Here’s an interesting article that was hanging around in my “to blog” tabs for a while now: How to Read Big Files with PHP (Without Killing Your Server). I found the title to be slightly misleading, expecting the good old advice of reading and processing files line by line rather than all at once. But it’s not that. It’s much better. It covers some techniques that aren’t that well known to the majority of the PHP developers – generators, streams, and filters.
Strongly recommended read!