I use the example, and get a return of garbage. If the content header not
being understood??
Thanks
Oak
Function view($qq)
{
$dir='c:\\redoak\\working\\records\\documents\\';
//documentsin\
// ll be outputting a PDF
header('Content-type: application/pdf');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="download"');
// The PDF source is in original.pdf
readfile($dir.$qq['file']);
}
"Oak Hall" <oa*@scenicmls.com> wrote in message
news:Xc****************@news02.roc.ny...
I think I found the answer under header content type. Sorry. Thanks Oak
"Oak Hall" <oa*@scenicmls.com> wrote in message
news:0a**************@news02.roc.ny...I have files (pdf) that users can view. They are in a protected site.
index.php's first function is to check the User Name and password. If
they are ok, it answers the request.
I want return a pfd file.
So if a user goes to
http://www.mysite.com/index.php?comm...file=mydoc.pdf
Index.php would check there user name and password then return the pdf
file to the borwser. Can this be done??
Thanks
Oak