$fp = fopen(’https://www.example.com/pdfdoc’, ‘r’); $user = "sammy"; $pass = "password"; $ftp_server = "192.168.10.10"; //should be wrapped in try catch to properly handle errors $ftp_conn = ftp_ssl_connect($ftp_server); $login = ftp_login($ftp_conn, $user, $pass); ftp_chdir($ftp_conn, ‘path/to/folder’); //can also use ftp_pwd ftp_pasv($ftp_conn, true); //passive mode ftp_fput($ftp_conn, "mydocument.pdf", $fp, FTP_BINARY); fclose($fp); ftp_close($ftp_conn);$fp = fopen(‘https://www.example.com/pdfdoc’,…