Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Php ftp

  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Php ftp

    Im trying to put together a PHP FTP client and ive recently hit a wall regarding downloading files. From what i can gather ftp_get will download the file from an FTP server to the webserver. But what i need is to download a file from an FTP site to the client, using a webserver's front end. Much like.. http://www.webftp.co.uk/. Is there anywhere out there that explains how to go about this, im not sure what to look for.

    Any tips welcome!!

  • #2
    New Coder
    Join Date
    Mar 2010
    Posts
    26
    Thanks
    3
    Thanked 1 Time in 1 Post
    As long as you want to keep the PHP server in between, as a relay for the data, you have to do a download in 2 steps, first ftp_get the file from the FTP site to your site and then send the file to the client via HTTP.

    Ive recently had a similar problem, where the solution looks like this: click here

    You only have to replace my DB-read with your ftp_get


  •  

    Posting Permissions

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