create ftp connection using drupal I have made my own module, that has a form where the user can upload a file.
Once the file has been collected, Drupal should open an FTP connection to a server and upload the file into it.
I have found "Storage API" and "Media Move" modules that seems to have this kind of functionality, but I have no clue on how use those modules with my custom code.
How do I make an FTP connection from Drupal to an external server and upload the file?
cURL ist the perfect library for this. It's available on most PHP servers. Check this for an example.