I have problem in files downloading over ssl. When am trying with IE Browser i got
"Internet Explorer cannot download 40 from blah.gov
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
Whem am tried with mozile firebox i can download small size files but could not download max size files... here my code
Expand|Select|Wrap|Line Numbers
- if(is_file($dir."/".$file))
- {
- header("Content-Disposition: attachment; filename=\"$file\";");
- header("Content-Type: file/x-msdownload");
- header("Content-Length: ".filesize($dir."/".$file));
- //echo file_get_contents($dir."/".$file);
- $handle = fopen($dir."/".$file, "rb");
- while (!feof($handle)) echo fread($handle, 8192);
- fclose($handle);
- }
- else if(is_dir($dir."/".$file))
- {
- include_once("lib/zip.lib.php");
- $newzip = new zipfile();
- chdir($dir);
- $name=$file;
- add_dir($name,$newzip);
- header("Content-Disposition: attachment; filename=".$name."_navphp.zip");
- header("Content-Type: file/x-msdownload");
- $data=$newzip->file();
- header("Content-Length: ".strlen($data));
- echo $data;
- }
header("Cache-Control: no-store, no-cache, must-revalidate");
but not succeed ... what is the problem....