ProAnswers.org

What is the best way to read large files in PHP?

What is the best way to read large files in PHP?

Using the standard file() function to read large text files (say greater than 10 Mb) may give problems. You should use fopen() fread() fgets() instead.