Re: [PHP] [PHP Header] Right-Click Download in Firefox showing php filename

2008-08-04 Thread Will
Thanks everyone. I looked into the Firefox browser forums/support and found that the "Right-Click >> Save Link As" does not send the header response, as it will take the file as-is. So in this example, it sees the 'download.php' and then takes that as the default name. It then starts the download o

Re: [PHP] [PHP Header] Right-Click Download in Firefox showing php filename

2008-08-04 Thread David Otton
2008/8/4 Will <[EMAIL PROTECTED]>: > I am trying to have users download a file named 'Setup.msi', however > under a PHP file with the sent header information, the default name to > $forcename = "ApplicationSetup_v1_0.msi"; > $filename = "Setup.msi"; > > header("Content-Type: application/force-dow

Re: [PHP] [PHP Header] Right-Click Download in Firefox showing php filename

2008-08-04 Thread mike
On 8/3/08, Will <[EMAIL PROTECTED]> wrote: > @readfile($filename); You should look into a webserver and instead of using readfile() which will keep the PHP engine open while it is spoonfeeding the browser, offload the file to the webserver. nginx has X-Accel-Redirect (nginx is the best anyway) L

[PHP] [PHP Header] Right-Click Download in Firefox showing php filename

2008-08-03 Thread Will
I followed some of the examples that was on PHP header() http://us3.php.net/manual/en/function.header.php I am trying to have users download a file named 'Setup.msi', however under a PHP file with the sent header information, the default name to the user will be 'ApplicationSetup_v1_0.msi' -- I am