Hi All,
I'm trying to do a file download like, when the user click on a link called Download here, then the file should be downloaded. I've used the headers and I'm getting the save dialog in netscape. But, after entering the file name, the download stops abruptly and displays a message "The document contained no data. Try again later, or contact the server's administrator". Any help will be highly appreciated.
My code is :
$download_filename="memb.doc";
$file_location_url="/student/users/links/";
if ($startdownload == "yes") {
header("Content-Type: application/octet-stream; name=$file_location_url");
header("Content-Disposition: attachment; filename=$download_filename");
exit;
}
Thanks in advance
Nithya.