CRC values update by readfile function?

From: Date: Sun, 21 Dec 2003 18:32:45 +0000
Subject: CRC values update by readfile function?
Groups: php.general 
Request: Send a blank email to php-general+get-173104@lists.php.net to get a copy of this message
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

« previous php.general (#173104) next »