Reply to Re: Download code

Your name:

Reply:


Posted by shimmyshack on 09/08/07 11:14

Sheldon Glickler wrote:
> I have a set of jpg files on a page. I want to give the user the option to
> downloadd all of them at once. What is the code to do that? It must exist
> because many times users are presented with a download button and there must
> be something behind it. Even if it is one file at a time, I can loop
> through the list. As for a name, I can use the current name and if it is
> one at a time, then the user can name each one.
>
> Alternatively, I could zip it up into one file and then have the download.
>
> So, I have two questions:
>
> 1 - What is the code to download a file to the user's computer?
> 2 - How do I zip up a set of jpg files on the server?
>
> Shelly


as for zipping there is a decent class for that, easy to use, but
memory limits and so on might stop large jpegs being zipped, you can
also use 7zip command line version to reate an archive to disk which
you then serve as required. This is perhaps the best way depending on
whether you have shell access through php, as it can create many types
of archive, you then serve this file as normal

[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

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