Reply to Re: Saving Files

Your name:

Reply:


Posted by Bogomil Shopov on 01/05/05 14:51

Hello
Yes you can do that. Please follow the steps:

header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="downloaded.pdf"');
readfile('original.pdf');

Bogomil
http://purplerain.org


prthomp@uark.edu wrote:
> Hi all.
>
> Note, this may be a bit off topic.
>
> With that said... I am wanting to save a file off my website to a certain location on my computer. Is there a way to click on a button (or something) and that invokes the download, which then saves to (for example) C:\SomePlace\Directory\Pizza\sausage.txt?
>
> The whole process:
> 1. User uploads from a specific location (that I already know)
> 2. Modifies the file via the web
> 3. Saves/downloads the file to that exact location as pulled from and replaces the old file
>
> It seems as though this can be done but I have not found a way to do it, and I have searched a lot. Any thoughts on how to?
>
> Thanks in advance,
> ~Philip

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация