RE: [PHP] File download question

2009-09-06 Thread Andrea Giammarchi
bject: Re: [PHP] File download question > > I think that your problem in this line: > > header("Content-Disposition: filename=$file" . "%20"); > > I don't know what that %20 is for and you should quote the filename, > that line should be some

Re: [PHP] File download question

2009-09-06 Thread Jonathan Tapicer
I think that your problem in this line: header("Content-Disposition: filename=$file" . "%20"); I don't know what that %20 is for and you should quote the filename, that line should be something like this: header("Content-Disposition: attachment; filename=\"$file\""); Considering that $filenam

[PHP] File download question

2009-09-06 Thread Chris Payne
Hi Everyone, I've setup a filedownload which works but i'm having an issue, i've left out but when it downloads it, while it has the correct file it doesn't have a file extension associated with it, I need the .7z extension associated with the filename, can anyone see why that would do this below?