Чтение из файла с помощью fread()
<?php
$f = fopen('/path/to/file','rb');
$data = '';
while(!feof($f))
$data .= fread($f, 1024);
fclose($f);
echo $data;
<?php
$f = fopen('/path/to/file','rb');
$data = '';
while(!feof($f))
$data .= fread($f, 1024);
fclose($f);
echo $data;