Thanks in advance to anyone who can help me ...
I have a link on a page that allows people to automatically download a jpeg.
The link basically goes to "download.jpg?p ic=filename"
Here's what I have in my download.php file:
$pic=$_GET['pic'];
$file="lg/"."$pic";
$name="$pic";
$fp=fopen($file , "r");
header("content-disposition: filename=\"$nam e\"");
header("content-type: attachment; name=\"$name\"" );
fpassthru($fp);
exit;
It works fine on everything I've tried on a PC, plus it works fine on Safari
and Netscape on a Mac, but it doesn't work on IE on a Mac, either on 9.x or
OS X. Anybody know why?
Thanks,
Sam
I have a link on a page that allows people to automatically download a jpeg.
The link basically goes to "download.jpg?p ic=filename"
Here's what I have in my download.php file:
$pic=$_GET['pic'];
$file="lg/"."$pic";
$name="$pic";
$fp=fopen($file , "r");
header("content-disposition: filename=\"$nam e\"");
header("content-type: attachment; name=\"$name\"" );
fpassthru($fp);
exit;
It works fine on everything I've tried on a PC, plus it works fine on Safari
and Netscape on a Mac, but it doesn't work on IE on a Mac, either on 9.x or
OS X. Anybody know why?
Thanks,
Sam
Comment