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
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
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
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
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
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,
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
-
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
- 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
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
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
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 =
] 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:
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
14 matches
Mail list logo