Moving Around a File with fseek()
$filename = "data.txt";
$fp = fopen( $filename, "r" ) or die("Couldn't open $filename");
$fsize = filesize($filename);
$halfway = (int)( $fsize / 2 );
print "Halfway point: $halfway
\n";
fseek( $fp, $halfway );
$chunk = fread( $fp, ($fsize - $halfway) );
print $chunk;
?>