Posted by robert on 05/04/06 02:29
| I need the solution to work in both Firefox and IE. Thanks!
|
| <?php
| $url="myfile.exe";
| header("Content-type: application/octet-stream");
| header("Content-Disposition: inline; filename=".basename($url)."");
| readfile($url);
| ?>
change the content-disposition to "attachment; filename=", add a header for
the length. you can also set the content-type to
"application/force-download".
hth,
me
[Back to original message]
|