Re: New Line Character while downloading a file!

From: Date: Fri, 24 Sep 2004 13:17:35 +0000
Subject: Re: New Line Character while downloading a file!
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-197778@lists.php.net to get a copy of this message
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" <divick.kishore@hytechpro.com> wrote in message news:20040924131250.62169.qmail@pb1.pair.com... > 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); > > > > ?

« previous php.general (#197778) next »