advice on using php to loop through multiple FTP connections
<p>I am looking for some advice on how other developers would go about completing this same task.  Essentially what I am attempting to do is loop through rows within my database to connect to multiple FTP accounts, preg_match, then output the files separate from each other. Here is an example of the workflow:</p>

<pre><code>pull connection 1
login to FTP
check preg_match against all files listed
list matching files
disconnect
...
pull connection 2
login to FTP
check preg_match against all files listed
list matching files
disconnect
...
repeat
</code></pre>

<p>The end result will be me creating a table with the results separate from each other.</p>
