What I'm trying to do is temporarily download a file to a local folder, but without prompting the "open" or "save to disk" part. I want to automatically save the file right after I click the link.
currently I have this
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=$filename.xls");
header("Pragma: no-cache");
header("Expires: 0");