$ts) { $found = $file; $ts = filemtime('./'.$file); //echo($file.' '.$ts); } } } if ($found == '') { die('Cannot find version.'); } header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.$found); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: '.filesize('./'.$found)); readfile('./'.$found); ?>