Just a little problem really, using the code:
<?php
$size=filesize($file);
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=".$file);
header("Content-Transfer-Encoding: binary");
readfile($file);
?>
to force download of a file, everything goes OK and I get the file in the end, however in the download dialogue box.. I get the following...
download.php?file=filename.ext
Instead of just the filename specified. Any way round this at all ?