I have this link: http://gdlp01.c-wss.com/gds/6/0300002536/03/PSG11_CUG_EN_03.pdf and I want to copy this file to my FTP server. I tried:
$file = "http://gdlp01.c-wss.com/gds/6/0300002536/03/PSG11_CUG_EN_03.pdf"; $data = file_get_contents($url); $ftp_server = "ftp_server"; $ftp_user = "ftp_user"; $ftp_pass = "ftp_pass"; $ftp = ftp_connect($ftp_server,21) or die("Couldn't connect to $ftp_server"); if (ftp_login($ftp, $ftp_user, $ftp_pass)) { echo "Connecté en tant que $ftp_user@$ftp_server\n"; } else { echo "Connexion impossible en tant que $ftp_user\n"; } The connection was successful, but after that I do not know how to start.