hello list,

I have a problem with file integrity in my url.
I try to force download file with the following script:

------------------------------------------------------------
$sFile = $dSession['DOWNLOAD'][$id][$type];
if (is_file($sFile))
{
header("Content-disposition: attachment; filename=".basename($sFile));
header("Content-Type: force-download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($sFile));
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");
readfile($sFile);
}
-------------------------------------------------------------
nothing very hard to understand, but
if I try to donwload the file with a ftp application, CRC checksum is different from file download with this script (there is only one file to download in the folder read, it's not a bad file read).
have you an idea to fix this?
thanks in advance for your help
best regards


Matthieu

_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to