Hi, everyone,
I have a problem I couldn't figure out. Hope that I can find an answer here.
I have a form for user to download files from the intranet. The script works on Netscape 4, Netscape 6, I.E. 5.5. The problem is that the majority of our browsers( 200 soemthing) are still I.E. 4.02 SP2.
Here is the script:
$filename = $dataDir1 . $id . ".dat";
$size = filesize("$filename");
header ("Content-Type: application/octet-stream");
header ("Content-Length: $size");
header ("Content-Disposition: attachment; filename=$file_name");
header ("Content-Transfer-Encoding: binary");
readfile($filename);
The error message was:
I.E.cannot download from the internet site download.php from 192.168.xxx.xxx. The download file is not available. This could be due to your security or language or because the server was unable to retrieve the requested file.
I know it works since it works on Netscape 4,6 and I.E. 5.5.
Any idea? Going to touch and install 200 something workstation with newer browser is out of the question at this moment.
Thanks in advance for any help.