Hi everybody,
I am facing download difficulties.
Each time I try to download a file, I get a zero file size.!!!
Here is my code:
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$stripped_File");
header("Pragma: no-cache");
header("Expires: 0");
$fp = fopen ($localFile, "rb");
$file_contents = fread($fp,filesize($localFile));
//print($file_contents);
fclose ($fp);
When I take out the comments before the print statement, I can see the (open/save) dialog box, but when I click save, I can't see
the location where I should save the file. Simply nothing happen.!!!
Thanx