amazon web services - PHP ftp_connect() returns false -
$ftp_host = "letsassist.biz"; $ftp_user_name = 'username'; $ftp_user_pass = 'mypassword'; $port = 21; $connect_it = ftp_connect( $ftp_host,$port ); if($connect_it){ echo "connect"; }else{ echo "not connect"; }
when try run code in localhost echo "connect", when try run remote server (aws ec2) echo "not connect".
any solution please.