I am learning to program in PHP I am trying to download a file from FTP server but my script returns this error
"Warning: ftp_get (): I won't open a connection to 10.90.0.165 (only to 93.40.228.30) in C: \ xampp \ htdocs \ dashboard \ index .php on line 24"
How can I solve?
<?php
//connessione al sistema FTP
$ftp_server = 'xxxxxxxx';
$ftp_username = 'xxxxxxxx';
$ftp_userpass = 'xxxxxxxxx';
$ftp_conn = ftp_connect ($ftp_server) or die ('Non funziona la connessione');
$login = ftp_login ($ftp_conn, $ftp_username, $ftp_userpass);
$local_file = 'local.csv';
$server_file = 'LIST8801261.csv';
ftp_get($ftp_conn, $local_file, $server_file);
// chiusura connessione
ftp_close($ftp_conn);?>