Sebastian,

Just tried it - it dosn't work for me.

George
----- Original Message -----
From: "Sebastian" <[EMAIL PROTECTED]>
To: "'George Pitcher'" <[EMAIL PROTECTED]>; "'Php-General"
<[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 12:19 PM
Subject: AW: [PHP] Delivering NAMED pdf files


Hi George

I had the same problem a while ago.
The only solution i found was to change the link to :
www.blabla.com/pdffile/test.pdf
test.pdf does not exist, but
in /pdffile/ there is a .htaccess which redirects the 404 to the php
script that reads/generates the pdfs. And for my purpose checks if user
is
authorized to get these files.

sebastian

> -----Ursprüngliche Nachricht-----
> Von: George Pitcher [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 19. Oktober 2001 12:55
> An: Arpad Tamas; [EMAIL PROTECTED]
> Betreff: Re: [PHP] Delivering NAMED pdf files
>
>
> Arpi,
>
> Thanks for the suggestion but it didn't change anything.
>
> George
>
> ----- Original Message -----
> From: "Arpad Tamas" <[EMAIL PROTECTED]>
> To: "George Pitcher" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, October 19, 2001 11:13 AM
> Subject: Re: [PHP] Delivering NAMED pdf files
>
>
> > On Friday 19 October 2001 11:52, George Pitcher wrote:
> > > Hi all,
> > >
> > > I am delivering my PDF files from a non-internet
> directory. The file
> > > gets delivered but the filename is always changed to the
> name of the
> > > php script.
> > >
> > > Can anyone tell me how to get the file delivered so that the name
> > > stays as it was on the server?
> > It works this way for me on many browsers (included ie):
> >
> > header("Content-Type: application/octectstream");
> > header("Content-Disposition: filename=$name");
> > header("Pragma: no-cache");
> > header("Expires: 0");
> >
> > Don't forget to double-check every capital letter, because
> it matters
> > in http and for most browsers too (for example your Content-Type's
> > capitals are wrong below).
> > Arpi
> >
> > > ==========
> > > <?php
> > > $fp1 = "D:\\Pdf\\" . $fp;
> > > $len = filesize($fp1);
> > > header("Content-type: application/pdf");
> > > header("Content-Disposition: inline; filename=$fp1");
> > > header("Content-Length: $len");
> > > readfile($fp1);
> > > ?>
> > > =============
> > >
> > > Regards
> > >
> > > George Pitcher, Edinburgh
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED] To contact the list
> administrators, e-mail: [EMAIL PROTECTED]
>
>



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to