Dwonload with PHP do not work..

From: Date: Sun, 28 Sep 2003 11:13:13 +0000
Subject: Dwonload with PHP do not work..
Groups: php.general 
Request: Send a blank email to php-general+get-164161@lists.php.net to get a copy of this message
$file = "/home/xxxx/openssh-3.6.1p1.tar.gz"; $mb = filesize($file); $download = "openssh-3.6.1p1.tar.gz"; $fp = fopen($file, "r");
         Header ( "HTTP/1.1 206 One resume, coming up!" );
         Header ( "Pragma: no-cache" );
         Header ( "Content-Type: application/octet-stream" );
         Header ( "Content-Length: ".filesize("$file") );
         Header ( "Content-Disposition: attachment; filename=$download" )$
         readfile("/home/xxxx/openssh-3.6.1p1.tar.gz");
         exit;
THis start a download but give me a corrupted downloaded file... Any help out here...... _________________________________________________________________ Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/

« previous php.general (#164161) next »