Make sure not to use this function in php file_get_contents() instead use fopen()
Here is an example on how to read a large file in PHP
$handle = fopen("bigfile.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
// Process the lineecho $line;
}
fclose($handle);
} else {
echo "Error opening file.";
}
I hope this help