Are you sending a Content-Type header to the browser to let it know what
type of file you are sending it?
On Wed, 2003-10-01 at 12:27, Pushpinder Singh Garcha wrote:
> Hello All
>
> I need to allow a user to access a PDF file, only if he/she is logged
> in as a registered user. So here is the code that I am trying to use. I
> have been able to make this work in the past, when I had to read .html
> file, now since the file in question is a .pdf file, I am having
> trouble. The browser shows a long list of weird characters instead of
> the pdf file
>
>
> if(session_is_registered("user_valid")){
>
> $filepath ="docs/any_file.pdf";
--
Tyler Lane <[EMAIL PROTECTED]>
Lyrical Communications
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php