The PHPro.org website has a quick new tutorial about a method (using streams) to get the information from a certain line of a file.
Reading files in PHP can be a tricky business if not handled correctly. Most often when confronted with reading a line from, the nearest tool to hand is the file() function.
The problem with using the file() function is that it reads the whole file into an array, and thus, into memory [...]...
Post new comment