follow-up question , how do I download the files?
after connecting to the ftp server that is behind proxy the following commands does not work
$conn_id = ftp_connect("ftp_proxy",2121) or die('Could not connect to FTP-server.');
if(ftp_login($conn_id, "ftp_username@ftp_server", "ftp_password")) {
echo 'Connected to FTP-server.';
ftp_chdir($conn_id, "History");//( ! ) Warning: ftp_chdir(): CWD failed. "/History": directory not found.
$server_file = "2019-02.mdb";
$local_file ="2019-02.mdb";
// try to download $server_file and save to $local_file
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) { // Warning: ftp_get(): File not found
echo "Successfully written to $local_file\n";
} else {
echo "There was a problem\n";
}
}