HTML - Single Page Template
PHP - Connection to a MySQL Database
PHP - List directory glob() vs. scandir()
PHP - Serve file
PHP - Serve CSS
AJAX - simple POST call
AJAX - create AJAX object
AJAX - simple POST call
set_time_limit(0); $download_path = "files/"; $file = "{$download_path}/{$filename}"; $type = filetype($file); header('Content-Description: File Transfer'); header("Content-type: {$type}"); header("Content-Disposition: attachment;filename={$filename}"); header("Content-Transfer-Encoding: binary"); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header("Pragma: no-cache"); header("Expires: 0"); ob_clean(); flush(); readfile($file); exit();
links
code
download