Help: a NS7 problem
| From: | oleks | Date: | Thu, 12 Aug 2004 01:08:09 +0000 |
| Subject: | Help: a NS7 problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-24387@lists.php.net to get a copy of this message | ||
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