Hi everybody!
Hope someone can help me out with this!
I'm sending a file to a user with the following code:
header( "Content-Type: application/binary");
header( "Content-disposition: attachment; filename=$filen ame");
header( "Content-Transfer-Encoding: binary" );
passthru( "svnadmin dump ".$svn_repos_lo c."/".$name );
(the svnadmin dump command returns a mostly ascii file, but could also
contain some non-ascii parts)
Somehow the file that is saved on the recipients computer gets an
additional blank first line. Off course I can strip this somehow, but
I'm interested in an explanation of this behavior and I would like a
more appropriate solution!
Thanks & regards,
Marijn
Hope someone can help me out with this!
I'm sending a file to a user with the following code:
header( "Content-Type: application/binary");
header( "Content-disposition: attachment; filename=$filen ame");
header( "Content-Transfer-Encoding: binary" );
passthru( "svnadmin dump ".$svn_repos_lo c."/".$name );
(the svnadmin dump command returns a mostly ascii file, but could also
contain some non-ascii parts)
Somehow the file that is saved on the recipients computer gets an
additional blank first line. Off course I can strip this somehow, but
I'm interested in an explanation of this behavior and I would like a
more appropriate solution!
Thanks & regards,
Marijn
Comment