- Timestamp:
- 04/16/08 13:25:01 (8 months ago)
- Files:
-
- 1 modified
-
trunk/plog-download.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-download.php
r496 r524 212 212 213 213 add_photos($checked, $level, $dir, $zipfile); 214 215 // the next three lines force an immediate download of the zip file: 214 215 $output = $zipfile -> file(); 216 217 // the next lines attempt to clear the cache, get the filesize, and force an immediate download of the zip file: 218 header("Pragma: public"); 219 header("Expires: 0"); 220 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 221 header("Cache-Control: private",false); 216 222 header("Content-type: application/octet-stream"); 217 header("Content-disposition: attachment; filename=plog-package-".date("Y.m.d").".zip"); 218 echo $zipfile -> file(); 223 header("Content-disposition: attachment; filename=plog-package-".date("Y.m.d").".zip"); 224 header("Content-Length: ".strlen($output)); 225 header('Content-Transfer-Encoding: binary'); 226 echo $output; 219 227 220 228 return;
