Page 1 of 1

File download

Posted: Tue Nov 22, 2005 8:33 am
by hame22
Hi i want to make a scrpt that downloads a file to the users machine, like the custom browser download dialogue box.

The reason why I am not using the standard download box is that I want to force the user to save to their machine and not open the file.

I have read about ftp_fget() is it possible to set up such a script through this method?

thanks in advance

Posted: Tue Nov 22, 2005 9:05 am
by neophyte
To download files I think you just need to change the headers. Look at this thread:

viewtopic.php?t=39981&highlight=download+image

Posted: Tue Nov 22, 2005 9:29 am
by hame22
sorry i didnt explain myself to well,

the reason why i do not want the standard browser download box is that aswell as comin with the "Save" button it also has the "open" button, i just want my users to save. As there is no way to customise the dialgoe box to just the "save" button beacuse it is browser based i am looking at other methods to acheive the objectives.

thanks

Posted: Tue Nov 22, 2005 9:36 am
by JayBird
your always gonna get the defualt browser dialogue...no way around it without some kind of activeX control or additional plugin

Posted: Tue Nov 22, 2005 12:06 pm
by Grim...

Code: Select all

<b>Click 'Save', not 'Open'</b>
How about that?

Posted: Wed Nov 23, 2005 3:09 am
by hame22
yeah if only it was that simple! to me and you maybe but for some reason 50% of my users are blind to instructions!