Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice