Re: [PHP] Delivering NAMED pdf files

2001-10-29 Thread George Pitcher
forward to Frankfurt 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, Rasmus' suggestion is correct, but he was terse

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 to

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 stays as

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 Subject: Re: [PHP] Delivering NAMED pdf files

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: Re: [PHP] Delivering NAMED pdf files On Friday 19

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
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

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
- 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 accessible directory and don't use custom header calls because they do

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
- Original Message - 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 accessible directory and don't use custom

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Pitcher [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 anywhere where you define the name of the file. James Cox

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread MrBaseball34
And the php page which is fileaccess.php: ?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? -- PHP

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: ?php $fp1 = D:\\Pdf\\ . $fp; $len =

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
] 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 PROTECTED]">news:[EMAIL PROTECTED]... And the php page which is fileaccess.php:

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