Hallo Andreas,
<?php
$file ='access_log';
$fp = fopen ($file, 'r');
do {
$line = fgets($fp,4096);
if (strlen($line) == 0) {
break;
}
// hier die Filterfunktion
} while(true);
fclose ($fp);
?>
Sinnvoller:
while(($line = fgets($fp)) !== false) {
// tu was
}
Gruesse,
CK
--
http://cforum.teamone.de/
http://wishlist.tetekum.de/
If God had meant for us to be in the Army, we would have been born with green, baggy skin.
http://cforum.teamone.de/
http://wishlist.tetekum.de/
If God had meant for us to be in the Army, we would have been born with green, baggy skin.