[PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
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? My PHP code. This is all the php code I

Re: [PHP] Delivering NAMED pdf files

2001-10-29 Thread George Pitcher
kfurt next week - Original Message - From: "Bill Rausch" <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 8:22 PM Subject: RE: [PHP] Delivering NAMED pdf files > George, > >

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Rasmus Lerdorf
The obvious hack would be to simply make the link: http://your.domain.com/script.php/filename_you_want.pdf -Rasmus On Fri, 19 Oct 2001, 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

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Arpad Tamas
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 > sta

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Rasmus, Thanks for the suggestion but it didn't change anything. George - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 10:54 AM Su

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
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:

AW: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Sebastian
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 > > &g

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread speedboy
> Thanks for the suggestion but it didn't change anything. It won't. Put them in a web accessible directory and don't use custom header calls because they do not work reliably. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
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

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
ssage - From: "speedboy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 12:27 PM Subject: Re: [PHP] Delivering NAMED pdf files > > Thanks for the suggestion but it didn't change anything. > > It won't. Put them in a web acces

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
fine. > > I thought that php was better than Frontier, though. > > George > - Original Message - > From: "speedboy" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, October 19, 2001 12:27 PM > Subject: Re: [PHP] Delivering NAMED p

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
er" <[EMAIL PROTECTED]>; "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 12:45 PM Subject: RE: [PHP] Delivering NAMED pdf files > can you paste the full text of the code as you have it? I don't see anywher

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread MrBaseball34
> > And the php page which is fileaccess.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); > ?> Have you CHECKED the value of $fp? -

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Yes, If I download the file as it is named, it is the file I expected, only not named the way I wanted. George "MrBaseball34" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > And the php page which is fileaccess.php: > > > > > $fp1 = "D:\\Pdf\\" . $fp;

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
D] > Subject: Re: [PHP] Delivering NAMED pdf files > > > Yes, > > If I download the file as it is named, it is the file I expected, only not > named the way I wanted. > > George > > "MrBaseball34" <[EMAIL PROTECTED]> wrote in message > [EMAIL P

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Bill Rausch
George, Rasmus' suggestion is correct, but he was terse as usual :) and you might not have understood what he was saying. My solution is to present a list of the filenames available as LINKS (to non-existent files). Then the script does what you've already got. The problem is that some brows