Help: a NS7 problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

How to fix a NS7 problem where it wants to add a .PHP extension to all filenames

I try to use this funnction:

function download ($fileDir, $fileName) {
   $completeFilePath=$fileDir.'/'.$fileName;
   header('Pragma: no-cache');
   header("Content-type: archive/exe\n
	   Content-Disposition: attachment;
		filename=\"" . $fileName . "\"\n
	   Content-length: ".(string)(filesize($completeFilePath))
	  );
   $fd=fopen($completeFilePath,'rb');
     while(!feof($fd)) {
         print(fread($fd, 4096));
         flush();
     }
}

MSIE6 works perfect but NS7 adds .php extension when I try to force NS7 to download a file. How to fix this problem

Thanks for help ...
Oleks

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux