This is my script, it reads the file apr_2003.log into the array $buffer.
$fp = fopen("apr_2003.log", "r");
$count = 0;
//while($count < 1000) {
while (!feof($fp)){
$buffer[] = chop(fgets($fp, 4096));
$count = $count +1;
}
If I use the while with the $count<1000, it seems to work just fine... but only reads the first 1000 lines. If I use the !feof, it loads for awhile then just comes up with a blank page. No error messages, which happens when there is an error on my webserver.
Any ideas?