The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using CURL and PHP to Upload via FTP

Discussion in 'General Discussion' started by PlanetMaster, Feb 13, 2009.

  1. PlanetMaster

    PlanetMaster Registered

    Dec 26, 2008
    Likes Received:
    Trophy Points:
    New York
    A number of people have PMed me for this as I wrote a script for it awhile back. I have improved on the script a bit but am still adding to it as well.

    Using CURL and PHP we can upload files to a password protected FTP account on your server. cURL is a great library for file transmissions via different types of protocols. The library supports the transport via POST, GET, FTP upload and much more. cURL is also able to authenticate on the target server or website.

    version 0.9
    There is a demo and the script can be downloaded here:

    TO DO : (v1.0)
    Add upload progress meter
    Add session variables
    Better and broader error reporting (Currently CURL reports success and upload errors not if the file is too big)
    Integrate into IPB for user only access (For IPB users)

    Full documentation is here:

    I wont post it here because I dont have time to support it here but can at my site. Newer versions will also be released there as well and also considering requests for more options and CMS/Forum board integrations.

Share This Page