Before I posted I tried this but it doesn't work.
if(!$fp = fopen($file,"r")){echo "error reading file"; die() ;}
header('Content-type: application/pdf');
while (! feof($fp)) {
$buffer = fread($fp,filesize($file));
print $buffer;
}
readfile() has the same results. Something is going on and the status bar says "Downloading from...";
But the page remains blank when finished with this as the source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>