title: php - ftp all files in a directory?
body: <p>Trying to use php to get all files in a directory and save them locally... It seems like I constantly need to specify a name?  Is that right?  </p>
  
  <pre><code>function grabFiles() {
           $conn = ftp_connect(REMOTE);
               @ftp_login($conn, REMOTEUSER, REMOTEPASS);
               ftp_get($conn, '*', FTP_BINARY);
          }
  </code></pre>