title: php upload multiple files via ftp
body: <p>I am currently using the following code to upload images to an ftp server:</p>
  
  <pre><code>&lt;input name="userfile" type="file" size="50"&gt;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>$filep=$_FILES['userfile']['tmp_name'];
  $name=$_FILES['userfile']['name']; 
  
  $upload = ftp_put($conn_id, $paths.'/'.$name, $filep, FTP_BINARY);
  </code></pre>
  
  <p>This works fine except that it only uploads one image.</p>
  
  <p>Any help with multiple (3-4) image uploads pls.</p>
  
  <p>Thanks in advance</p>