I am trying to connect and get the file from the server, but I got the following error:
Warning: ftp_login() : the user cannot log in, the home directory is unavailable.
define('FTP_HOST', 'example.com'); define('FTP_USER', 'xxxx'); define('FTP_PASS', 'xxxx'); $conn_id = ftp_connect(FTP_HOST) or die("Couldn't connect"); echo var_dump($conn_id); $c = ftp_login($conn_id, FTP_USER, FTP_PASS); echo "<br>"; echo var_dump($c);
source share