$filename = '../wp-content/uploads/'. $filename;
if (file_exists($filename)) {
$f=fopen($filename, 'r');
while(!feof($f)) {
echo fread($f, 1024);
flush();
}
fclose($f);
} else {
header($_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
header('Status: 404 Not Found');
echo $filename. ' NOT FOUND 404';
}
apr_socket_recv: Connection reset by peer (104)
Total of 47 requests completed
**.**.**.** - - [30/Oct/2013:14:19:22 +0200] "GET / HTTP/1.0" 200 54088 "-" "ApacheBench/2.3"
.... 52 раза одно и тоже.....
**.**.**.** - - [30/Oct/2013:14:19:22 +0200] "GET / HTTP/1.0" 200 54088 "-" "ApacheBench/2.3"
**.**.**.** - - [30/Oct/2013:14:19:22 +0200] "GET / HTTP/1.0" 200 54088 "-" "ApacheBench/2.3"
**.**.**.** - - [30/Oct/2013:14:19:22 +0200] "GET / HTTP/1.0" 200 8688 "-" "ApacheBench/2.3"
**.**.**.** - - [30/Oct/2013:14:19:23 +0200] "GET / HTTP/1.0" 200 8688 "-" "ApacheBench/2.3"
**.**.**.** - - [30/Oct/2013:14:19:23 +0200] "GET / HTTP/1.0" 200 8688 "-" "ApacheBench/2.3"
.... 174 раза одно и тоже.....
**.**.**.** - - [30/Oct/2013:14:19:23 +0200] "GET / HTTP/1.0" 200 8688 "-" "ApacheBench/2.3"
**.**.**.** - - [30/Oct/2013:14:19:23 +0200] "GET / HTTP/1.0" 200 8688 "-" "ApacheBench/2.3"