Hi,
I'm trying to amend a script I had for downloading files from a database.
How do I change it to download files from folder?
I think it's to do with the headers...
header('Content-type: ' . $type);
header('Content-length: '. $size);
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Disposition: attachment; filename="' . $name . '"');
readfile($uploadfile);
$type and $size are not set in the code. What should I change these to?