Forum Moderators: coopster
header ("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$filename");
readfile($filenameWithPath);
This works fine in Mozilla, but in internet explorer (6), it produces an error message – appears to be trying to get the php file (with variables).
Any advice much appreciated.
it looks like there may be some useful comments. One was adding
header("Cache-control: private");
not sure if that will do it.