just 2 gb
Quote:
|
take a look in the PHP documentation
|
i did but i don't find any thing
but i searched in google and i found that
PHP Code:
$file = "file.txt";
$fh = fopen($file, "rb");
//feof = end of file
while(!feof($fh)) {
$line = fgets($fh); //fgets reads one line at a time
//do something
}
PHP Code:
$read_lim = 8192; //size in bytes to load into memory
$file = "test.txt";
$fh = fopen($file, "rb");
$size = filesize($file); //total file size
while ($size > 0) {
$rlen = ($size > $read_lim) ? $read_lim : $size; //read length
$buffer = fread($fh, $rlen);
//do something
$size -= $rlen;
}
what the best ?
Recent comments
5 hours 47 min ago
12 hours 28 min ago
16 hours 18 min ago
17 hours 57 min ago
1 day 2 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 20 hours ago
1 day 20 hours ago