IBM Developer

Article

The right way to read files with PHP

Learn when to use fopen, fclose, feof, fgets, fgetss, and fscanf

By Roger McCoy