PHP FTP Upload thousands of files
        Posted  
        
            by user275074
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user275074
        
        
        
        Published on 2010-04-07T07:50:44Z
        Indexed on 
            2010/04/07
            7:53 UTC
        
        
        Read the original article
        Hit count: 294
        
Hi,
I've written a small FTP class which I used to move files from a local server to a remote server. It does this by checking an array of local files with an array of files on the remote server. If the file exists on the remote server, it won't bother uploading it.
The script works fine for small amounts of files, but I've noticed that the local server can have as many as 3000+ image files to transfer, this seems to cause the script to flop and only transfer a 100 or so.
How can I modify the script to handle potentially thousands of image transfer files?
© Stack Overflow or respective owner