I have just changed the server that was being used our public website.
In the process the php scripts used to download files stopped working
with IE. The new box is running Debian Testing. The php version is
listed as PHP Version 4.3.10-9. Apache 1.0.33. The download script looks
like this:


if(file_exists($path))
{
  $filesize = filesize($path);
  Header("Content-Length: $filesize");
  Header("Content-type: application/download");
  Header("Content-Disposition-type: attachment");
  Header("Content-Disposition: filename=$filename");
  Header("Content-Transfer-Encoding: binary");
  $fp = fopen("$path","rb");
  $result = fpassthru($fp);
  unlink($path);
  exit;
}
else
{
        print "Could not create backup file";
}

Any ideas on where to look? I have tried searching php.net, google and
the php mailing lists and have tried a variety of variations on the
script but I still can't get it work. Works fine with Firefox though.

Thanks,


Luis 

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

Reply via email to