Re: New Line Character while downloading a file!
| From: | Ramil Sagum | Date: | Fri, 24 Sep 2004 12:08:31 +0000 |
| Subject: | Re: New Line Character while downloading a file! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197771@lists.php.net to get a copy of this message | ||
On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore
<divick.kishore@hytechpro.com> 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 fine.
Maybe that's the key to the problem. You may have a blank line
somewhere. Something like:
<!--- start of PHP file -->
<?php
code...
?>
The blank line before the "<?php" tag gets sent out before your
headers are sent.
Does the code have this?
HTH
----
ramil
http://ramil.sagum.net