SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2001
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CURL to do an FTP get

    Does anyone know how to download a file from an FTP site using CURL?

    The ftp site requires a username and password.

    The server I am using does not support the PHP FTP functions.

    Thanks
    xuamox

  2. #2
    midnight coder
    Join Date
    Dec 2000
    Location
    The flat edge of the world
    Posts
    838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't you just do this to download using cURL?

    curl ftp://name:passwd@machine.domain:port/full/path/to/file

    If you wanna use it for PHP, have a look at the user comments on this page:

    http://www.php.net/manual/en/function.curl-exec.php


Bookmarks

Posting Permissions

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