8 lines
176 B
PHP
8 lines
176 B
PHP
$fh = fopen($filename, 'r');
|
|
if ($fh) {
|
|
while (!feof($fh)) {
|
|
$line = rtrim(fgets($fh)); # removes trailing newline
|
|
# process $line
|
|
}
|
|
fclose($fh);
|
|
}
|