I stand happily corrected :)
On 4/10/01 7:01 PM, "Stuart J. Browne" <[EMAIL PROTECTED]> wrote:
>
> "Lindsay Adams" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You are not going to be able to use PHP to tell the client browser to do
> anything.
>
> y
After you have created the file, use this to force a downlaod.
This will downlaod anything, even an html file.
$fileName = basename($downloadFile);
header("Content-disposition: attachment; filename=\"$fileName\"");
header("Content-type: application-download");
header("Pragma: no-cache");
header("
"Lindsay Adams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You are not going to be able to use PHP to tell the client browser to do
anything.
you are going to have to embed either a java.applet, or javascript to do it.
I don¹t know a whole lot about either,
You are not going to be able to use PHP to tell the client browser to do
anything.
you are going to have to embed either a java.applet, or javascript to do it.
I don¹t know a whole lot about either, so I don't know if they are even a
possibility.
On 4/10/01 2:29 PM, "Nando2" <[EMAIL PROTECTED]>
(text).
- Original Message -
From: "Brad S. Jackson" <[EMAIL PROTECTED]>
To: "Nando2" <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 7:00 PM
Subject: Re: [PHP] Forcing a dynamic created text file to be saved
Whether the save dialog is display
Hello all!
I have a PHP4 script that produces a text file and I would like that when the user
access this script the text content of it was forced to be saved meaning that when the
user selects it he/she will have the save dialog form to save the text file with the
filename specified in the he
6 matches
Mail list logo