title: Warning: ftp_put(): Connecting to port
body: <p>I cannot upload files into my ftp server.    </p>
  
  <p>There is always warning:</p>
  
  <blockquote>
    <p>ftp_put(): Connecting to port.</p>
  </blockquote>
  
  <pre><code>&lt;?php
      set_time_limit(0);
      $host = 'xxxx';
      $usr = 'yyyy';
      $pwd = 'zzzz';
      $local_file = '/home/back.sql';
      $ftp_path = '/public_html/';
      $conn_id = ftp_connect($host, 21) or die ("Cannot connect to host");
      ftp_login($conn_id, $usr, $pwd) or die("Cannot login");
      $upload = ftp_put($conn_id, $ftp_path.'back1.sql', $local_file, FTP_ASCII); 
      print($upload);
  ?&gt;
  </code></pre>
  
  <p>The code were executed for three times. I got three different warnings.</p>
  
  <blockquote>
    <p>Warning:  ftp_put(): Connecting to port 1926 in filename (i named it) on line 10<br>
    Warning:  ftp_put(): Connecting to port 1928 in filename (i named it) on line 10<br>
    Warning:  ftp_put(): Connecting to port 1930 in filename (i named it) on line 10</p>
  </blockquote>
  
  <ol>
  <li>What does the warning info mean?        </li>
  <li>Why connect to different ports? Maybe the ports should be 21 for every time, why not?</li>
  </ol>