header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=$filename"); echo(file_get_contents("uploads/$filename"));If the filename has a space in it, the first part gets used.
Example:
File1 = spoon and knife.zip = spoon
File2 = spoonandknife.zip = spoonandknife.zip
What didly bits " ' ’ ` do i use to make use the full name?