title: Too many FTP connections, can't accept more
body: <p>I got the following error message:</p>
  
  <blockquote>
    <p><strong>Warning:</strong> ftp_login(): I can't accept more than 6 connections as the same user in C:\xampp\htdocs\test\ftp_sync.php on line 58</p>
  </blockquote>
  
  <p>My code which causes the error:</p>
  
  <pre><code>function newStream($i){
          $conId = ftp_connect($this-&gt;ftpServer);
  
          // login with username and password
          $login_result = ftp_login($conId, $this-&gt;ftpUsername, $this-&gt;ftpPassword);//line 58
          // /home/content/61/10367861/html/
  
          // turn passive mode on
          ftp_pasv($conId, true);
  
          $this-&gt;conIds[$i]=$conId;
          $this-&gt;localFiles[$i]='';
          $this-&gt;conStats[$i]=FTP_FAILED;//initial value
      }
  </code></pre>
  
  <p>Does anyone probably know what this error message means?</p>