i have the problem with firefox here, however the downloaded php file i simply rename to the filename that it was supposed to be then it works just fine, so the file is downloaded correctly, it's just that firefox gives it the name 'attachment.php' instead of 'demo.zip'