Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php read big file line by line

if ($file = fopen("file.txt", "r")) {
    while(!feof($file)) {
        $line = fgets($file);
        # do same stuff with the $line
    }
    fclose($file);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #read #big #file #line #line
ADD COMMENT
Topic
Name
2+3 =