title: Why is ftp_login() authentication failing?
body: <p>I am attempting to use <code>ftp_login()</code> but continue to get the error: </p>
  
  <pre><code>Warning: ftp_login(): Login authentication failed in /path/to/file.php
  </code></pre>
  
  <p>I am 100% positive that the username and password are correct. Login succeeds when using an FTP client like WinSCP or FileZilla. There are no symbols in either the password or username.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>$ftp_host = 'host.com'; 
  $ftp_user_name =  'user@host.com'; 
  $ftp_user_pass = 'password';
  
  $connect = ftp_connect( $ftp_host ) or die( "Couldn't connect to server!!!" );
  $login_result = ftp_login( $connect, $ftp_user_name, $ftp_user_pass );
  </code></pre>
  
  <p>I am using HostGator and I am trying to transfer files this domain to a sub-domain also with HostGator.</p>
  
  <p>Please help. Thanks!</p>