w would I modify this code so it will automatically save the file to a location? As it is, it prompts the user before saving it.
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=export_projects.xls");
header("Pragma: no-cache");
header("Expires: 0");
print "$header\n$data";
Any help is greatly appreciated!