• PHP script that would individually zip and fetch all .ch files

    Abhey Member

    I need a PHP script that would individually zip and fetch all .ch files (located inside a specific folder) from my ftp server into my website.

    ftpdir/source/file1.ch
    ftpdir/source/mike.ch
    ftpdir/source/alex.ch
    

    To:

    websitedir/newfolder/file1.zip
    websitedir/newfolder/mike.zip
    websitedir/newfolder/alex.zip
    

    I’ve tried countless codes I found online, but nothing works as I would like it to.

  • Abhey Member
    ";
                    }
                 else { echo "something went wrong
    "; } } } closedir($dh); } } ?>

    Didn’t include the php zip functionality … anyways, ftp and http on the same server or a different server?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
en_USEnglish