Re: New Line Character while downloading a file!
| From: | Marek Kilimajer | Date: | Fri, 24 Sep 2004 12:41:46 +0000 |
| Subject: | Re: New Line Character while downloading a file! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197776@lists.php.net to get a copy of this message | ||
Divick Kishore wrote:
Do you have header('Content-Disposition: attachment; filename=' . $relative_file); or header('Content-Disposition: attachment; filename=' . $fileName); ?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.