Click to See Complete Forum and Search --> : Save/open box
weapher
08-04-2005, 06:02 PM
I have several pdf files people can download from my site. When they click on the file, how do I give them the option to either save or open rather than it just opening up in adobe? I believe it is a pretty simple script to create the options box...I guess
ray326
08-04-2005, 08:24 PM
No, it's a rather prickly situation that depends on the user's browser configuration.
griff777
08-06-2005, 04:12 PM
I have several pdf files people can download from my site. When they click on the file, how do I give them the option to either save or open rather than it just opening up in adobe? I believe it is a pretty simple script to create the options box...I guess
The link is the key. If you use http://somesite.com/somefile.php then you will evoke either view or save (usually), but if you use ftp://somesite.com/somefile.php, then you should get a save as dialog box. FTP is the protocol, and "IF" you have ftp enabled on the site, it's no big problem... Hopefully...
Give it a try. It will either work, or not.
Kravvitz
08-06-2005, 06:44 PM
http://us2.php.net/manual/en/function.header.php#48538