Panique did a great job answering a question on this thread: PHP directory list from remote server
But he created a function I don't understand at all and was hoping to get some sort of explanation. For example, what's with the random 8192 number?
function get_text($filename) {
$fp_load = fopen("$filename", "rb");
if ( $fp_load ) {
while ( !feof($fp_load) ) {
$content .= fgets($fp_load, 8192);
}
fclose($fp_load);
return $content;
}
}