downloading on Mac
Posted on 2002-06-21
hi, i've got this downloading problem. my webserver is in a Mac with OSX. i have a page where i show thumbnails of pictures and if the viewers click on a button, the corresponding piture will be downloaded. here's the part of the code:
$path = $dirpath. "/" .$filename;
header("Content-Disposition: attachment; filename=".$filename);
$fp = fopen($path, 'rb');
if i access the page from a Windows PC using IE or from a Linux PC using Netscape or Konqueror, it works perfectly fine. but if i access it from a Mac OSX using IE for Mac, it won't download the image file, instead it just shows the image in its original size in the same frame as the download page.
i have no idea what's wrong. please help. thanks!