Re: New Line Character while downloading a file!
| From: | Divick Kishore | Date: | Fri, 24 Sep 2004 13:12:38 +0000 |
| Subject: | Re: New Line Character while downloading a file! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197777@lists.php.net to get a copy of this message | ||
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" <lists@kilimajer.net> wrote in message
news:4154160A.3010108@kilimajer.net...
> Divick Kishore wrote:
> > Indeed you figured it right. I do have a new line at the top of the
> > <?php tag. Removing that has solved the problem partially at least the
> > newline is not being appended. But the problem of file name is still
there.
> > The download popup asks for the file name as DownloadScript.php which
> > contains the code below.
> >
>
> Do you have
>
> header('Content-Disposition: attachment; filename=' . $relative_file);
>
> or
>
> header('Content-Disposition: attachment; filename=' . $fileName);
>
> ?