Created
November 9, 2013 14:43
-
-
Save nokimaro/7386191 to your computer and use it in GitHub Desktop.
PHP read big file without memory limit error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fp = fopen($cuts_list_file, 'rb'); | |
while(!feof($fp)) | |
{ | |
$line = fgets($fp); //fgets reads one line at a time | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment