how to download all files in directory

Posted on 2005-04-10
Medium Priority
Last Modified: 2012-08-14
Hi, I have a php app that creates some files on the server. The client would like to be able to download all files in a particular directory to their local machine in just one click.

Is this possible? If it is too difficult, I will just have them use an ftp client. But if there is an easy way to integrate this in their app, that would be better.

Question by:alpineer

Accepted Solution

peyox earned 2000 total points
ID: 13748147
I think ZIP file is the way to ago, you will find some helpful information in this post:

Another approach:

This is in ASP, but might help:

Or they can use one of these download accelerators which usually have option to download multiple files at once (FlashGet, GetRight, etc...)

Author Comment

ID: 13753997
Thanks. I'm just going to configure an ftp client to make it as easy as possible for them. It doesn't sound like it is worth the trouble to re-invent the wheel.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question