Sorry what I have is header('Content-Disposition: attachment; filename=' .
$relative_file); And changing that to fileName solved my problem perfectly.
Thanks a lot once again.
Divick Kishore
"Divick Kishore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have
> header('Co
I have
header('Content-Disposition: attachment; filename=' . $fileName);
> Do you have
>
> header('Content-Disposition: attachment; filename=' . $relative_file);
>
> or
>
> header('Content-Disposition: attachment; filename=' . $fileName);
>
> ?
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote
Divick Kishore wrote:
Indeed you figured it right. I do have a new line at the top of the
Do you have
header('Content-Disposition: attachment; filename=' . $relative_file);
or
header('Content-Disposition: attachment; filename=' . $fileName);
?
--
PHP General Mailing List (http://www.php.net/)
Indeed you figured it right. I do have a new line at the top of the
wrote in message
news:[EMAIL PROTECTED]
> On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore
> <[EMAIL PROTECTED]> wrote:
> >Another problem is that when the file is downloaded a new
> >line character is added to the top of it
On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore
<[EMAIL PROTECTED]> wrote:
>Another problem is that when the file is downloaded a new
>line character is added to the top of it unncessarily due to which it can't
>be opened with any image viewer.
>Once I reomove that newline character, it works fi
Thanks for pointing that out. But still it doesn't solve my problem.
Thanks for a prompt response.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Divick Kishore wrote:
> > Hi,
> > I am a newbie to php so pls be gentle.
> >
> > I am having problems while downl
Divick Kishore wrote:
Hi,
I am a newbie to php so pls be gentle.
I am having problems while downloading a file via this script. I am sending
the following headers and then a call to readfile function in the swcript.
This leads to opening of a download popup but the file name being shown is
the
Hi,
I am a newbie to php so pls be gentle.
I am having problems while downloading a file via this script. I am sending
the following headers and then a call to readfile function in the swcript.
This leads to opening of a download popup but the file name being shown is
the name of the script fi
8 matches
Mail list logo