Results 1 to 6 of 6

Thread: [RESOLVED] Download all files in FTP directory

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    247

    Resolved [RESOLVED] Download all files in FTP directory

    I am programming a script to allow users to download all the files into an FTP directory. I tried to find out how to zip a FTP directory for delivery, but that doesn't work. Also, since the uploading is dynamic, I can not directly know what the files are in the FTP directory.

    If someone could point me in the right direction, that'd be great.

    Thanks.



  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Download all files in FTP directory

    i am not sure you question is very clear. you want people to download a directory in your ftp server?
    My usual boring signature: Something

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Download all files in FTP directory

    I'm not quite certain what you're after either. There's no such thing as an "FTP directory". FTP is just a means by which people can access directories and files on a server (that they have permissions to).

    If what you want is simply to create an archive from the contents of a particular folder on the server, take a look at:
    PHP: Zip File Functions

    Scroll down to the comment from "nospam at hostingfanatic dot com" at "12-May-2006 03:27", it might just what you're looking for.

    If not, then have a go at rewording your problem.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    247

    Re: Download all files in FTP directory

    Ah, I see some words I used that may confuse people. OK, I will have another run at it.

    I am programming a web-based interface for users to upload models and textures to that they have created for a game development team I am on. I have got the upload function working, the browsing working, and I am working on various other aspects.

    I have come across the download aspect, and all I want is to zip up requested directories (on the server) on demand and send them to the users becuase it still needs to be browsable and sortable backend.

    Now can you point me in the right direction?



  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Download all files in FTP directory

    I understand. Did the sample in that link help at all?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    247

    Re: Download all files in FTP directory

    Yes...I searched around a little bit and I discovered how to do it and now the script that zips files in a directory on the server and allows users to download it on the fly is working A-OK. Very thankful for your help!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width