If I have a php script that does nothing but the following...
$file = fopen($path, "r");
echo fread($file, filesize($path));
Yes, it's read into a buffer. It's essentially equivalent to:
$temp = fread($file, filesize($path)); echo $temp;
You can use
fpassthru() to send to the client without reading everything into a buffer at once.