Hí! Need some help please! Does anyone know what could be the reason so I can’t download my files from a MSIE 6 browser? When I download from Opera or MoZilla it works properlly, but from the MS browser it doesn’t work. It opens the related application or plugin but after that it shows a message telling that the specified file was not found at C:Documents & Settings.
I am using a Fedora Core 2 system with Apache 2, MySql 3.23.58 and PHP 4. The field in the BD is BLOB type. The PHP Script is:
<?php
if(isset($id)) {
include_once “ez_sql.php”;
$query = “SELECT file_name, file_format, file_size, file FROM files
WHERE files.id = ‘$id'”;
$result = mysql_query($query) or die(‘Error, query failed’);
list($file_name, $file_format, $file_size, $file) = mysql_fetch_array($result);
header(“Content-length: $file_size”);
header(“Content-type: $file_format”);
header(“Content-Disposition: attachment; filename=$file_name”);
echo $file;
exit;
}
?>
Thanks in advance!